aboutsummaryrefslogtreecommitdiff
path: root/binutils/testsuite/lib
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2006-04-10 19:05:31 +0000
committerH.J. Lu <hjl.tools@gmail.com>2006-04-10 19:05:31 +0000
commitda28e1e1b073aa293883d838010ff1dd98178a8a (patch)
tree05b83b12f142fd3e3e59935c96b51d4c23e948ec /binutils/testsuite/lib
parent05d5814545bf0a4430406c253670d25ab014f893 (diff)
downloadgdb-da28e1e1b073aa293883d838010ff1dd98178a8a.zip
gdb-da28e1e1b073aa293883d838010ff1dd98178a8a.tar.gz
gdb-da28e1e1b073aa293883d838010ff1dd98178a8a.tar.bz2
2006-04-10 H.J. Lu <hongjiu.lu@intel.com>
* lib/utils-lib.exp (default_binutils_run): Check exit status.
Diffstat (limited to 'binutils/testsuite/lib')
-rw-r--r--binutils/testsuite/lib/utils-lib.exp6
1 files changed, 6 insertions, 0 deletions
diff --git a/binutils/testsuite/lib/utils-lib.exp b/binutils/testsuite/lib/utils-lib.exp
index bb819a3..f7970b2 100644
--- a/binutils/testsuite/lib/utils-lib.exp
+++ b/binutils/testsuite/lib/utils-lib.exp
@@ -73,6 +73,12 @@ proc default_binutils_run { prog progargs } {
if {![string match "" $exec_output]} then {
send_log "$exec_output\n"
verbose "$exec_output"
+ } else {
+ if { [lindex $state 0] != 0 } {
+ set exec_output "$prog exited with status [lindex $state 0]"
+ send_log "$exec_output\n"
+ verbose "$exec_output"
+ }
}
return $exec_output
}