This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] S390: Add missing gdb_prompt in s390-multiarch.exp
- From: Andreas Arnez <arnez at linux dot vnet dot ibm dot com>
- To: gdb-patches at sourceware dot org
- Cc: Ulrich Weigand <uweigand at de dot ibm dot com>, Andreas Krebbel <krebbel at linux dot vnet dot ibm dot com>
- Date: Wed, 30 Oct 2013 15:30:08 +0100
- Subject: [PATCH] S390: Add missing gdb_prompt in s390-multiarch.exp
- Authentication-results: sourceware.org; auth=none
Correct the patterns in the gdb_test_multiple invocation.
testsuite/
2013-10-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
* gdb.arch/s390-multiarch.exp (test_linux_v2): Add $gdb_prompt to
the patterns in gdb_test_multiple.
---
gdb/testsuite/gdb.arch/s390-multiarch.exp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gdb/testsuite/gdb.arch/s390-multiarch.exp b/gdb/testsuite/gdb.arch/s390-multiarch.exp
index e31ad17..e36e36a 100644
--- a/gdb/testsuite/gdb.arch/s390-multiarch.exp
+++ b/gdb/testsuite/gdb.arch/s390-multiarch.exp
@@ -62,13 +62,15 @@ proc compile_and_dump {variant ccopts binfile} {
}
proc test_linux_v2 {} {
+ global gdb_prompt
+
set test "Linux v2"
gdb_test_multiple "info reg system_call" "$test" {
- -re "system_call\[ \t\]+0x\[0-9a-z\]+\t.*" {
+ -re "system_call\[ \t\]+0x\[0-9a-z\]+\t.*\r\n$gdb_prompt $" {
pass "$test"
return 1
}
- -re "Invalid register `system_call'.*" {
+ -re "Invalid register `system_call'.*\r\n$gdb_prompt $" {
unsupported "$test (no system_call reg)"
return 0
}
--
1.7.11.4