From 943fef64b24885fd2aa49427c639c455bf5508ee Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Mon, 21 Sep 2009 13:15:28 +0000 Subject: [PATCH] * lib/gas-defs.exp (gas_test_error): Mark internal error/assertion failures seen in output as fails. Also record output being matched for fails. --- gas/testsuite/ChangeLog | 6 ++++++ gas/testsuite/lib/gas-defs.exp | 14 +++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index bc4eb13349c..bf4e234ab09 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2009-09-21 Maciej W. Rozycki + + * 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 * gas/mips/eret-1.d: Adjust regexps for robustness. diff --git a/gas/testsuite/lib/gas-defs.exp b/gas/testsuite/lib/gas-defs.exp index 07d6445938e..06bf04ccac8 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" } } -- 2.30.2