* lib/gas-defs.exp (gas_test_error): Mark internal error/assertion

failures seen in output as fails.  Also record output being
	matched for fails.
This commit is contained in:
Maciej W. Rozycki 2009-09-21 13:15:28 +00:00
parent 26abf39f0f
commit 943fef64b2
2 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,9 @@
2009-09-21 Maciej W. Rozycki <macro@linux-mips.org>
* lib/gas-defs.exp (gas_test_error): Mark internal error/assertion
failures seen in output as fails. Also record output being
matched for fails.
2009-09-21 Maciej W. Rozycki <macro@linux-mips.org>
* gas/mips/eret-1.d: Adjust regexps for robustness.

View File

@ -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"
}
}