This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[ob] Fix timeouts in gcore.exp
- From: Daniel Jacobowitz <dan at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 1 Feb 2010 12:16:25 -0500
- Subject: [ob] Fix timeouts in gcore.exp
gcore.exp fails in 64-to-32-bit testing on x86-64 (--target_board
unix/-m32). The particular failure mode led to a really long timeout;
this patch doesn't address the failures, but does remove the timeouts.
--
Daniel Jacobowitz
CodeSourcery
2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
* gdb.base/gcore.exp (capture_command_output): Use
gdb_test_multiple.
Index: gdb.base/gcore.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/gcore.exp,v
retrieving revision 1.15
diff -u -p -r1.15 gcore.exp
--- gdb.base/gcore.exp 1 Jan 2010 07:32:01 -0000 1.15
+++ gdb.base/gcore.exp 1 Feb 2010 17:14:20 -0000
@@ -69,14 +69,10 @@ proc capture_command_output { command pr
global expect_out
set output_string ""
- send_gdb "$command\n"
- gdb_expect {
+ gdb_test_multiple "$command" "capture_command_output for $command" {
-re "${command}\[\r\n\]+${prefix}(.*)\[\r\n\]+$gdb_prompt $" {
set output_string $expect_out(1,string)
}
- default {
- fail "capture_command_output failed on $command."
- }
}
return $output_string
}