aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-07-29 11:09:37 +0100
committerPedro Alves <palves@redhat.com>2015-07-29 11:09:37 +0100
commit12264a451d993a0a8635be82bed15618e0f4645f (patch)
tree4b864a223000fca53350f894d09f954e05e13ca4 /gdb
parent23ffc893f5693f20dc807c6a7daad402de0c2e51 (diff)
downloadfsf-binutils-gdb-12264a451d993a0a8635be82bed15618e0f4645f.zip
fsf-binutils-gdb-12264a451d993a0a8635be82bed15618e0f4645f.tar.gz
fsf-binutils-gdb-12264a451d993a0a8635be82bed15618e0f4645f.tar.bz2
Don't rely on inferior I/O in gdb.base/restore.exp
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-07-29 Pedro Alves <palves@redhat.com> * gdb.base/restore.exp (restore_tests): Use gdb_continue_to_end.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.base/restore.exp15
2 files changed, 5 insertions, 14 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 8866884..1820b27 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2015-07-29 Pedro Alves <palves@redhat.com>
+ * gdb.base/restore.exp (restore_tests): Use gdb_continue_to_end.
+
+2015-07-29 Pedro Alves <palves@redhat.com>
+
* gdb.base/call-signal-resume.exp: Remove check for
gdb,noinferiorio. Don't expect "no signal". Use gdb_test.
* gdb.base/unwindonsignal.exp: Likewise.
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