From 9ebf2cb938cb90c4dd6a4918f9a33e848179048d Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 24 Sep 2008 00:30:46 -0700 Subject: [PATCH] test/fwdoptpp: test %error, %warning, %fatal Test all of %error, %warning, and %fatal. Signed-off-by: H. Peter Anvin --- test/fwdoptpp.asm | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/test/fwdoptpp.asm b/test/fwdoptpp.asm index 1b041098..d1817334 100644 --- a/test/fwdoptpp.asm +++ b/test/fwdoptpp.asm @@ -1,4 +1,15 @@ -;Testname=test; Arguments=-fbin -ofwdoptpp.bin; Files=.stdout .stderr fwdoptpp.bin +;Testname=error; Arguments=-fbin -DERROR -ofwdoptpp.bin; Files=.stdout .stderr fwdoptpp.bin +;Testname=fatal; Arguments=-fbin -DFATAL -ofwdoptpp.bin; Files=.stdout .stderr fwdoptpp.bin +;Testname=warning; Arguments=-fbin -DWARNING -ofwdoptpp.bin; Files=.stdout .stderr fwdoptpp.bin + +%ifndef ERROR + %ifndef FATAL + %ifndef WARNING + %define ERROR 1 + %endif + %endif +%endif + n0: jmp n1 n1: jmp n2 n2: jmp n3 @@ -129,5 +140,11 @@ n126: jmp n127 n127: jmp n0 %if ($-$$) > 257 -%fatal "Out of space!" + %ifdef FATAL + %fatal "Out of space!" + %elifdef ERROR + %error "Out of space!" + %elifdef WARNING + %warning "Out of space!" + %endif %endif -- 2.11.4.GIT