aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-10-22 04:48:11 -0700
committerH.J. Lu <hjl.tools@gmail.com>2020-10-22 04:48:29 -0700
commit64ec7c3f80ac933b9092c42d27cd1766bb395145 (patch)
treec8706890a7f4c18015dd1e6f6703019489c240ba /binutils
parent777cd7ab3febadcdad52e3231e960af86e8742da (diff)
downloadgdb-64ec7c3f80ac933b9092c42d27cd1766bb395145.zip
gdb-64ec7c3f80ac933b9092c42d27cd1766bb395145.tar.gz
gdb-64ec7c3f80ac933b9092c42d27cd1766bb395145.tar.bz2
binutils: Report error message on error
* testsuite/binutils-all/objcopy.exp (objcopy_test): Report error message on error.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/testsuite/binutils-all/objcopy.exp1
2 files changed, 6 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index f12caf8..4c14fd1 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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.
diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp
index 47c3a48..9eff6a9 100644
--- a/binutils/testsuite/binutils-all/objcopy.exp
+++ b/binutils/testsuite/binutils-all/objcopy.exp
@@ -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"