]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
binutils: Report error message on error
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 22 Oct 2020 11:48:11 +0000 (04:48 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 22 Oct 2020 11:48:29 +0000 (04:48 -0700)
* testsuite/binutils-all/objcopy.exp (objcopy_test): Report
error message on error.

binutils/ChangeLog
binutils/testsuite/binutils-all/objcopy.exp

index f12caf81e506637e9751fc7d625114e412215647..4c14fd15103c7c58204e989a91f98c80da83a9e8 100644 (file)
@@ -1,3 +1,8 @@
+2020-10-22  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/binutils-all/objcopy.exp (objcopy_test): Report
+       error message on error.
+
 2020-10-22  Dr. David Alan Gilbert  <dgilbert@redhat.com>
 
        * windmc.c (write_header_define): Fix printf format.
index 47c3a48414476cf5c4a710f7e84361e31452396e..9eff6a9afb7f0336ede95d90e9f725209c8b6db6 100644 (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"