From 5f4c2f2db9ae66707d8a0a7ad587fceb90c69b21 Mon Sep 17 00:00:00 2001 From: Bob Manson Date: Wed, 9 Apr 1997 05:54:15 +0000 Subject: * gdb.base/watchpoint.exp(test_watchpoint_triggered_in_syscall): Don't call gdb_test when the command doesn't return to a gdb prompt. Oops. --- gdb/testsuite/ChangeLog | 3 +++ gdb/testsuite/gdb.base/watchpoint.exp | 11 +++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'gdb/testsuite') diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 3df4bf0..fb0c01b 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,8 @@ Tue Apr 8 19:33:20 1997 Bob Manson + * gdb.base/watchpoint.exp(test_watchpoint_triggered_in_syscall): + Don't call gdb_test when the command doesn't return to a gdb prompt. + * lib/gdb.exp(gdb_stop_suppressing_tests): Don't print gratuitous "Tests restarted" messages. diff --git a/gdb/testsuite/gdb.base/watchpoint.exp b/gdb/testsuite/gdb.base/watchpoint.exp index ffb0644..574a9eb 100644 --- a/gdb/testsuite/gdb.base/watchpoint.exp +++ b/gdb/testsuite/gdb.base/watchpoint.exp @@ -394,8 +394,15 @@ proc test_watchpoint_triggered_in_syscall {} { # If we send_gdb "123\n" before gdb has switched the tty, then it goes # to gdb, not the inferior, and we lose. So that is why we have # watchpoint.c prompt us, so we can wait for that prompt. - if [gdb_test "continue" "Continuing\\.\r\ntype stuff for buf now:" "continue to read" ] { - return ; + send_gdb "continue\n"; + gdb_expect { + -re "Continuing\\.\r\ntype stuff for buf now:" { + pass "continue to read" + } + default { + fail "continue to read"; + return ; + } } send_gdb "123\n" -- cgit v1.1