summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-09-05 11:19:13 +0000
committerNick Clifton <nickc@redhat.com>2008-09-05 11:19:13 +0000
commit1b68811036fc70f8256f75cd65968e40e12d3250 (patch)
tree494cf2c0d1c423430bb7fcfd6ea4a2f3424d4af3
parenteec80ee0839f8b6a2247c8a6a9b53a75b69fc56c (diff)
downloadbinutils-redhat-1b68811036fc70f8256f75cd65968e40e12d3250.tar.gz
* lib/gas-defs.exp (run_dump_test): If the test expects an error,
fail the test if gas doesn't report an error.
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/lib/gas-defs.exp4
2 files changed, 9 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 115944b337..f023ba9ca3 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -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.
diff --git a/gas/testsuite/lib/gas-defs.exp b/gas/testsuite/lib/gas-defs.exp
index af9f565969..512dbaaca9 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 == "" } {