This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 06/24] Don't rely on inferior I/O in gdb.base/restore.exp
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 21 Apr 2015 19:08:13 +0100
- Subject: [PATCH 06/24] Don't rely on inferior I/O in gdb.base/restore.exp
- Authentication-results: sourceware.org; auth=none
- References: <1429639711-16459-1-git-send-email-palves at redhat dot com>
There seems to be no point in relying on stdio here. Simply use
gdb_continue_to_end instead.
(not removing the printf calls, as the .c file is half generated.)
gdb/testsuite/ChangeLog:
2015-04-21 Pedro Alves <palves@redhat.com>
* gdb.base/restore.exp (restore_tests): Use gdb_continue_to_end.
---
gdb/testsuite/gdb.base/restore.exp | 15 +--------------
1 file changed, 1 insertion(+), 14 deletions(-)
diff --git a/gdb/testsuite/gdb.base/restore.exp b/gdb/testsuite/gdb.base/restore.exp
index a02ba4f..bd9dfbf 100644
--- a/gdb/testsuite/gdb.base/restore.exp
+++ b/gdb/testsuite/gdb.base/restore.exp
@@ -79,20 +79,7 @@ proc restore_tests { } {
}
}
- if ![gdb_skip_stdio_test "run to completion"] {
- send_gdb "continue\n"
-
- gdb_expect {
- -re "exiting" {
- pass "run to completion"
- }
- timeout {
- fail "(timeout) run to completion"
- }
- }
- } else {
- gdb_test "continue" ".*" ""
- }
+ gdb_continue_to_end "" continue 1
}
set prev_timeout $timeout
--
1.9.3