From: Daniel Jacobowitz Date: Wed, 20 Aug 2008 18:55:57 +0000 (+0000) Subject: * gdb.base/interp.exp: Always consume both prompts. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=97a2d1d34266269e8d2d0ba1ae2588b0465c778c;p=binutils-gdb.git * gdb.base/interp.exp: Always consume both prompts. --- 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