OSDN Git Service

* lib/gas-defs.exp (run_dump_test): If the test expects an error,
authorNick Clifton <nickc@redhat.com>
Fri, 5 Sep 2008 11:19:13 +0000 (11:19 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 5 Sep 2008 11:19:13 +0000 (11:19 +0000)
        fail the test if gas doesn't report an error.

gas/testsuite/ChangeLog
gas/testsuite/lib/gas-defs.exp

index 115944b..f023ba9 100644 (file)
@@ -1,3 +1,8 @@
+2008-09-04  Christian Groessler  <chris@groessler.org>
+
+       * 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  <jbeulich@novell.com>
 
        * gas/i386/intel.s: Add retf.
index af9f565..512dbaa 100644 (file)
@@ -690,6 +690,10 @@ proc run_dump_test { name {extra_options {}} } {
                return
            }
        }
+    } else {
+       if { $opts(error) != "" || $opts(error-output) != "" } {
+           fail $testname
+       }
     }
 
     if { $program == "" } {