binutils: Report error message on error

* testsuite/binutils-all/objcopy.exp (objcopy_test): Report
	error message on error.
This commit is contained in:
H.J. Lu
2020-10-22 04:48:11 -07:00
parent 777cd7ab3f
commit 64ec7c3f80
2 changed files with 6 additions and 0 deletions

View File

@ -82,6 +82,7 @@ proc objcopy_test {testname srcfile type asflags ldflags} {
set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS $xflags $t_tempfile $t_copyfile"]
if ![string equal "" $got] then {
send_log "$got\n"
fail "objcopy $type ($testname)"
} else {
send_log "cmp $t_tempfile $t_copyfile\n"