Make gdb.base/ending-run.exp use gdb_test_stdio
authorPedro Alves <palves@redhat.com>
Wed, 29 Jul 2015 10:09:42 +0000 (11:09 +0100)
committerPedro Alves <palves@redhat.com>
Wed, 29 Jul 2015 10:09:42 +0000 (11:09 +0100)
gdb/testsuite/ChangeLog:
2015-07-29  Pedro Alves  <palves@redhat.com>

* gdb.base/ending-run.exp: Use gdb_test_stdio.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/ending-run.exp

index b7274f8237c95daa73f6397528bf96b2b4dff361..ce04e398c3fe21d6ba25f1144516d5deb2fc47d0 100644 (file)
@@ -1,3 +1,7 @@
+2015-07-29  Pedro Alves  <palves@redhat.com>
+
+       * gdb.base/ending-run.exp: Use gdb_test_stdio.
+
 2015-07-29  Pedro Alves  <palves@redhat.com>
 
        * gdb.base/call-rt-st.exp (print_struct_call): Split "result"
index 7d37a48d9a76177e18375c0a61c5cb4aa21bbf36..dceebcd42b60cf628021da3387a66b191ff42cf5 100644 (file)
@@ -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" ".*" ""
 }