* 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 115944b337c35b9810bedcecfe8e477766dea7a1..f023ba9ca36dd478167bbaba1af8f0f91f52f220 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 af9f5659696c327e63c9d26024fb8d392a5c4b01..512dbaaca91dc31dffd09e1d8fd96345677386eb 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 == "" } {