From: Nick Clifton Date: Fri, 5 Sep 2008 11:19:13 +0000 (+0000) Subject: * lib/gas-defs.exp (run_dump_test): If the test expects an error, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cbd3921c54710f8b992c523d6fdeb19e37129802;p=binutils-gdb.git * lib/gas-defs.exp (run_dump_test): If the test expects an error, fail the test if gas doesn't report an error. --- diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 115944b337c..f023ba9ca36 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-09-04 Christian Groessler + + * lib/gas-defs.exp (run_dump_test): If the test expects an error, + fail the test if gas doesn't report an error. + 2008-08-28 Jan Beulich * gas/i386/intel.s: Add retf. diff --git a/gas/testsuite/lib/gas-defs.exp b/gas/testsuite/lib/gas-defs.exp index af9f5659696..512dbaaca91 100644 --- a/gas/testsuite/lib/gas-defs.exp +++ b/gas/testsuite/lib/gas-defs.exp @@ -690,6 +690,10 @@ proc run_dump_test { name {extra_options {}} } { return } } + } else { + if { $opts(error) != "" || $opts(error-output) != "" } { + fail $testname + } } if { $program == "" } {