aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2008-08-20 18:55:57 +0000
committerDaniel Jacobowitz <drow@false.org>2008-08-20 18:55:57 +0000
commit97a2d1d34266269e8d2d0ba1ae2588b0465c778c (patch)
treea3a80bbec6f59f1c681825e21095ffe47b77f533 /gdb
parent41a7d9f3fcc452e3135dedd12063cab6fd0d83b2 (diff)
downloadgdb-97a2d1d34266269e8d2d0ba1ae2588b0465c778c.zip
gdb-97a2d1d34266269e8d2d0ba1ae2588b0465c778c.tar.gz
gdb-97a2d1d34266269e8d2d0ba1ae2588b0465c778c.tar.bz2
* gdb.base/interp.exp: Always consume both prompts.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.base/interp.exp11
2 files changed, 14 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 110832d..a19be75 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * gdb.base/interp.exp: Always consume both prompts.
+
2008-08-20 Pedro Alves <pedro@codesourcery.com>
* gdb.base/pending.exp: Test pending breakpoints without symbols
diff --git a/gdb/testsuite/gdb.base/interp.exp b/gdb/testsuite/gdb.base/interp.exp
index e01ac0b..5ec4a67 100644
--- a/gdb/testsuite/gdb.base/interp.exp
+++ b/gdb/testsuite/gdb.base/interp.exp
@@ -21,7 +21,16 @@ if $tracelevel then {
gdb_start
-gdb_test "interpreter-exec mi \"-var-update *\"" "\\^done,changelist=[].*"
+# Do not use gdb_test for this test, since it has two prompts.
+set cmd "interpreter-exec mi \"-var-update *\""
+gdb_test_multiple $cmd $cmd {
+ -re "\\^done,changelist=\\\[\\\]\r\n$gdb_prompt " {
+ pass "$cmd"
+ gdb_expect 1 {
+ -re "\r\n$gdb_prompt $" { }
+ }
+ }
+}
gdb_test "interpreter-exec console \"show version\"" "GNU gdb .*"
gdb_exit