This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] lib/gdb.exp (run_on_host): Log error output if program fails.


Hi.

I got an inexplicable failure in one test when it called run_on_host.
I've applied this patch to make it easier to diagnose such failures
in the future.

2014-02-24  Doug Evans  <dje@google.com>

	* lib/gdb.exp (run_on_host): Log error output if program fails.

diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 9e14da9..2d04a8c 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -4621,6 +4621,7 @@ proc run_on_host { test program args } {
  	pass $test
  	return 0
     } else {
+	verbose -log "run_on_host failed: $output"
 	fail $test
 	return -1
     }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]