diff options
Diffstat (limited to 'gdb/testsuite/gdb.base/display.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/display.exp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/display.exp b/gdb/testsuite/gdb.base/display.exp index 7a3519ed190..b502dc66433 100644 --- a/gdb/testsuite/gdb.base/display.exp +++ b/gdb/testsuite/gdb.base/display.exp @@ -136,14 +136,21 @@ gdb_test "c" ".*Breakpoint 4.*" "watch off" # "do_vars". send_gdb "finish\n" gdb_expect { - -re ".*do_loops();.*$gdb_prompt $" { + -re ".*do_loops\\(\\);.*$gdb_prompt $" { send_gdb "step\n" exp_continue } -re ".*do_vars.*$gdb_prompt $" { pass "finish" } - default { fail "finish" ; gdb_suppress_tests; } + -re ".*$gdb_prompt $" { + fail "finish" + gdb_suppress_tests + } + timeout { + fail "(timeout) finish" + gdb_suppress_tests + } } gdb_test "s" ".*do_vars.*.*27.*" |