This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 15/24] Make gdb.base/ending-run.exp use gdb_test_stdio
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 21 Apr 2015 19:08:22 +0100
- Subject: [PATCH 15/24] Make gdb.base/ending-run.exp use gdb_test_stdio
- Authentication-results: sourceware.org; auth=none
- References: <1429639711-16459-1-git-send-email-palves at redhat dot com>
gdb/testsuite/ChangeLog:
2015-04-21 Pedro Alves <palves@redhat.com>
* gdb.base/ending-run.exp: Use gdb_test_stdio.
---
gdb/testsuite/gdb.base/ending-run.exp | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/gdb/testsuite/gdb.base/ending-run.exp b/gdb/testsuite/gdb.base/ending-run.exp
index 7d37a48..dceebcd 100644
--- a/gdb/testsuite/gdb.base/ending-run.exp
+++ b/gdb/testsuite/gdb.base/ending-run.exp
@@ -99,14 +99,18 @@ gdb_test_multiple "i b" "all set to continue" {
# is output from the program.
#
if ![gdb_skip_stdio_test "cont"] {
- gdb_test "cont" ".*1 2 7 14 23 34 47 62 79.*Breakpoint.*$break2_line.*"
+ gdb_test_stdio "cont" \
+ "1 2 7 14 23 34 47 62 79" \
+ "Breakpoint.*$break2_line.*"
} else {
gdb_test "cont" ".*Breakpoint.*$break2_line.*"
}
if ![gdb_skip_stdio_test "Step to return"] {
- gdb_test "next" ".*Goodbye!.*[expr {$break2_line + 1}].*" \
- "Step to return"
+ gdb_test_stdio "next" \
+ "Goodbye!" \
+ "[expr {$break2_line + 1}].*" \
+ "Step to return"
} else {
gdb_test "next" ".*" ""
}
--
1.9.3