This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 08/24] Make gdb.base/sizeof.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:15 +0100
- Subject: [PATCH 08/24] Make gdb.base/sizeof.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/sizeof.exp (check_sizeof, check_valueof): Use
gdb_test_stdio.
---
gdb/testsuite/gdb.base/sizeof.exp | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/gdb/testsuite/gdb.base/sizeof.exp b/gdb/testsuite/gdb.base/sizeof.exp
index 7fda76e..a237ee3 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.
--
1.9.3