+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
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