aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-07-29 11:09:42 +0100
committerPedro Alves <palves@redhat.com>2015-07-29 11:09:42 +0100
commit39413b296f9eb92ae3936bf29397ac1d35ca803b (patch)
tree224807b064cede38b9bdb426ebb9937e7e8af37d /gdb/testsuite
parent7cb000a97ebcf7f23fe1b63fbbdd86d87b8c8634 (diff)
downloadgdb-39413b296f9eb92ae3936bf29397ac1d35ca803b.zip
gdb-39413b296f9eb92ae3936bf29397ac1d35ca803b.tar.gz
gdb-39413b296f9eb92ae3936bf29397ac1d35ca803b.tar.bz2
Make gdb.base/shlib-call.exp use gdb_test_stdio
gdb/testsuite/ChangeLog: 2015-07-29 Pedro Alves <palves@redhat.com> * gdb.base/shlib-call.exp: Use gdb_test_stdio.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.base/shlib-call.exp20
2 files changed, 16 insertions, 8 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index ce04e39..5c52514 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
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.
2015-07-29 Pedro Alves <palves@redhat.com>
diff --git a/gdb/testsuite/gdb.base/shlib-call.exp b/gdb/testsuite/gdb.base/shlib-call.exp
index b79165a..2ccaa39 100644
--- a/gdb/testsuite/gdb.base/shlib-call.exp
+++ b/gdb/testsuite/gdb.base/shlib-call.exp
@@ -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"
}