aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-07-29 11:09:38 +0100
committerPedro Alves <palves@redhat.com>2015-07-29 11:09:38 +0100
commit8aed9555b232946606f3fb9370c1657a71c2afaf (patch)
tree9c2af34acb4c1f50452bd83a5eb37af2c8f6a042 /gdb/testsuite/gdb.base/sizeof.exp
parentIntroduce gdb_test_stdio (diff)
downloadbinutils-gdb-8aed9555b232946606f3fb9370c1657a71c2afaf.tar.gz
binutils-gdb-8aed9555b232946606f3fb9370c1657a71c2afaf.tar.bz2
binutils-gdb-8aed9555b232946606f3fb9370c1657a71c2afaf.zip
Make gdb.base/sizeof.exp use gdb_test_stdio
gdb/testsuite/ChangeLog: 2015-07-29 Pedro Alves <palves@redhat.com> * gdb.base/sizeof.exp (check_sizeof, check_valueof): Use gdb_test_stdio.
Diffstat (limited to 'gdb/testsuite/gdb.base/sizeof.exp')
-rw-r--r--gdb/testsuite/gdb.base/sizeof.exp12
1 files changed, 8 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.base/sizeof.exp b/gdb/testsuite/gdb.base/sizeof.exp
index 7fda76e82c5..a237ee35ae4 100644
--- a/gdb/testsuite/gdb.base/sizeof.exp
+++ b/gdb/testsuite/gdb.base/sizeof.exp
@@ -70,8 +70,10 @@ set sizeof_long_double [get_sizeof "long double" 8]
proc check_sizeof { type size } {
global gdb_prompt
- set pat [string_to_regexp "sizeof (${type}) == ${size}"]
- gdb_test "next" "${pat}\[\r\n\]+\[0-9\].*" "check sizeof \"$type\""
+ set pat [string_to_regexp "sizeof (${type}) == ${size}\r\n"]
+ gdb_test_stdio "next" "${pat}" \
+ "\[0-9\].*" \
+ "check sizeof \"$type\""
}
check_sizeof "char" ${sizeof_char}
@@ -90,8 +92,10 @@ check_sizeof "long double" ${sizeof_long_double}
proc check_valueof { exp val } {
global gdb_prompt
- set pat [string_to_regexp "valueof (${exp}) == ${val}"]
- gdb_test "next" "${pat}\[\r\n\]+\[0-9\].*" "check valueof \"$exp\""
+ set pat [string_to_regexp "valueof (${exp}) == ${val}\r\n"]
+ gdb_test_stdio "next" "${pat}" \
+ "\[0-9\].*" \
+ "check valueof \"$exp\""
}
# Check that GDB and the target agree over the sign of a character.