Fail run_dump_test when an error is expected but not seen

* testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
	(run_dump_test): Fail if expecting errors from a file like we do
	for error strings, if no error is seen.
This commit is contained in:
Alan Modra 2021-02-20 15:42:22 +10:30
parent c3bf9dc5aa
commit 4d496013a2
2 changed files with 315 additions and 309 deletions

View File

@ -1,3 +1,9 @@
2021-02-20 Alan Modra <amodra@gmail.com>
* testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
(run_dump_test): Fail if expecting errors from a file like we do
for error strings, if no error is seen.
2021-02-19 Alan Modra <amodra@gmail.com>
* testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.

View File

@ -1438,7 +1438,7 @@ proc run_dump_test { name {extra_options {}} } {
}
# We must not have expected failure if we get here.
if { $opts(error) != "" } {
if { $want_out(terminal) } {
fail $testname
continue
}