This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] lib/gdb.exp (run_on_host): Log error output if program fails.
- From: Doug Evans <dje at google dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 24 Feb 2014 13:42:39 -0800
- Subject: [commit] lib/gdb.exp (run_on_host): Log error output if program fails.
- Authentication-results: sourceware.org; auth=none
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
}