Make gdb.base/shlib-call.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/shlib-call.exp: Use gdb_test_stdio.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/shlib-call.exp

index ce04e398c3fe21d6ba25f1144516d5deb2fc47d0..5c525148e16c72a1bab2a888327eaf141a35ec69 100644 (file)
@@ -1,3 +1,7 @@
+2015-07-29  Pedro Alves  <palves@redhat.com>
+
+       * gdb.base/shlib-call.exp: Use gdb_test_stdio.
+
 2015-07-29  Pedro Alves  <palves@redhat.com>
 
        * gdb.base/ending-run.exp: Use gdb_test_stdio.
index b79165a29d76e2fa42faf175089eb3ac021e1bc9..2ccaa39ded9646ceae6e45e04f4b15f805b95acb 100644 (file)
@@ -79,8 +79,9 @@ gdb_test "print g" "\[0-9\]* = 1" "print g"
 
 #step -over
 if ![gdb_skip_stdio_test "next over shr1"] {
-    gdb_test "next" \
-       "address of sgs is $hex.*g = shr2\\(g\\);" \
+    gdb_test_stdio "next" \
+       "address of sgs is $hex" \
+       "g = shr2\\(g\\);" \
        "next over shr1"
 } else {
     gdb_test "next" ".*" ""
@@ -92,15 +93,17 @@ gdb_test "print g" "\[0-9\]* = 2" "print g"
 
 #print shr1(1)
 if ![gdb_skip_stdio_test "print shr1(1)"] {
-    gdb_test "print shr1(1)" \
-       "address of sgs is $hex.*\[0-9\]* = 2" \
+    gdb_test_stdio "print shr1(1)" \
+       "address of sgs is $hex" \
+       "\[0-9\]* = 2" \
        "print shr1(1)"
 }
 
 #print shr1(g)
 if ![gdb_skip_stdio_test "print shr1(g)"] {
-    gdb_test "print shr1(g)" \
-       "address of sgs is $hex.*\[0-9\]* = 4" \
+    gdb_test_stdio "print shr1(g)" \
+       "address of sgs is $hex" \
+       "\[0-9\]* = 4" \
        "print shr1(g)"
 }
 
@@ -117,8 +120,9 @@ gdb_test "continue" \
 
 #print shr1(1)
 if ![gdb_skip_stdio_test "print shr1(1) 2nd time"] {
-    gdb_test "print shr1(1)" \
-       "address of sgs is $hex.*\[0-9\]* = 2" \
+    gdb_test_stdio "print shr1(1)" \
+       "address of sgs is $hex" \
+       "\[0-9\]* = 2" \
        "print shr1(1) 2nd time"
 }