From 97a2d1d34266269e8d2d0ba1ae2588b0465c778c Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Wed, 20 Aug 2008 18:55:57 +0000 Subject: [PATCH] * gdb.base/interp.exp: Always consume both prompts. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.base/interp.exp | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 110832dfc41..a19be757404 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2008-08-20 Daniel Jacobowitz + + * gdb.base/interp.exp: Always consume both prompts. + 2008-08-20 Pedro Alves * 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 e01ac0b44f7..5ec4a671d75 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 -- 2.30.2