diff options
Diffstat (limited to 'binutils/testsuite/binutils-all/bfin/objdump.exp')
-rw-r--r-- | binutils/testsuite/binutils-all/bfin/objdump.exp | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/binutils/testsuite/binutils-all/bfin/objdump.exp b/binutils/testsuite/binutils-all/bfin/objdump.exp index 13305fc273..e063a624ff 100644 --- a/binutils/testsuite/binutils-all/bfin/objdump.exp +++ b/binutils/testsuite/binutils-all/bfin/objdump.exp @@ -30,23 +30,24 @@ send_user "Version [binutil_version $OBJDUMP]" ################################### if {![binutils_assemble $srcdir/$subdir/unknown-mode.s tmpdir/unknown-mode.o]} then { - return -} - -if [is_remote host] { - set objfile [remote_download host tmpdir/unknown-mode.o] + fail "unknown mode test (assembling)" } else { - set objfile tmpdir/unknown-mode.o -} -# Make sure that the unknown mode does not cause abort. + if [is_remote host] { + set objfile [remote_download host tmpdir/unknown-mode.o] + } else { + set objfile tmpdir/unknown-mode.o + } -set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -D $objfile"] + # Make sure that the unknown mode does not cause abort. -set want "e1 c1\[ \t\]*ILLEGAL.*34 98 .*\[\r\n\]" + set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -D $objfile"] -if [regexp $want $got] then { - pass "unknown mode test" -} else { - fail "unknown mode test" + set want "e1 c1\[ \t\]*ILLEGAL.*34 98 .*\[\r\n\]" + + if [regexp $want $got] then { + pass "unknown mode test" + } else { + fail "unknown mode test" + } } |