summaryrefslogtreecommitdiffstats
path: root/gas/testsuite/lib
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2009-09-21 13:15:28 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2009-09-21 13:15:28 +0000
commit943fef64b24885fd2aa49427c639c455bf5508ee (patch)
tree0baee81562e7cdb3712947efb146e28c5392b472 /gas/testsuite/lib
parent26abf39f0f2bb11f4d1c8b35555bc4c70d0a8ff4 (diff)
downloadppe42-binutils-943fef64b24885fd2aa49427c639c455bf5508ee.tar.gz
ppe42-binutils-943fef64b24885fd2aa49427c639c455bf5508ee.zip
* lib/gas-defs.exp (gas_test_error): Mark internal error/assertion
failures seen in output as fails. Also record output being matched for fails.
Diffstat (limited to 'gas/testsuite/lib')
-rw-r--r--gas/testsuite/lib/gas-defs.exp14
1 files changed, 7 insertions, 7 deletions
diff --git a/gas/testsuite/lib/gas-defs.exp b/gas/testsuite/lib/gas-defs.exp
index 07d6445938..06bf04ccac 100644
--- a/gas/testsuite/lib/gas-defs.exp
+++ b/gas/testsuite/lib/gas-defs.exp
@@ -222,14 +222,14 @@ proc gas_test_error { file as_opts testname } {
global comp_output
gas_run $file $as_opts ">/dev/null"
- if ![string match "" $comp_output] then {
- send_log "$comp_output\n"
- verbose "$comp_output" 3
- }
- if [string match "" $comp_output] then {
- fail "$testname"
- } else {
+ send_log "$comp_output\n"
+ verbose "$comp_output" 3
+ if { ![string match "" $comp_output]
+ && ![string match "*Assertion failure*" $comp_output]
+ && ![string match "*Internal error*" $comp_output] } then {
pass "$testname"
+ } else {
+ fail "$testname"
}
}
OpenPOWER on IntegriCloud