aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/gdb-sigterm.exp
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2021-05-11 14:22:11 +0200
committerTom de Vries <tdevries@suse.de>2021-05-11 14:22:11 +0200
commit2302f963547cd43c2d3b97491d5ef16be6b783a5 (patch)
tree16660f85df67b642754492abe496960b1e28905d /gdb/testsuite/gdb.base/gdb-sigterm.exp
parentabb894a4703ddf1d2f4b9c103d63f911c017e26a (diff)
downloadgdb-2302f963547cd43c2d3b97491d5ef16be6b783a5.zip
gdb-2302f963547cd43c2d3b97491d5ef16be6b783a5.tar.gz
gdb-2302f963547cd43c2d3b97491d5ef16be6b783a5.tar.bz2
[gdb/testsuite] Fix read1 timeout in gdb.base/gdb-sigterm.exp
When running check-read1, I run into a timeout in test-case gdb.base/gdb-sigterm.exp: ... [infrun] handle_inferior_event: status->kind = stopped, \ signal = GDB_SIGNAL_TRAP^M [infrun] start_step_over: enter^M [infrun] start_step_overFAIL: gdb.base/gdb-sigterm.exp: \ expect eof #0 (timeout) gdb.base/gdb-sigterm.exp: expect eof #0: stepped 0 times FAIL: gdb.base/gdb-sigterm.exp: 50 SIGTERM passes ... The corresponding gdb_test_multiple has an exp_continue clause, but it doesn't trigger because the regexp greps for 'infrun: ' instead of '[infrun] '. Fix the timeout by fixing the infrun regexp. Tested on x86_64-linux, with check and check-read1. gdb/testsuite/ChangeLog: 2021-05-11 Tom de Vries <tdevries@suse.de> * gdb.base/gdb-sigterm.exp: Fix exp_continue regexp.
Diffstat (limited to 'gdb/testsuite/gdb.base/gdb-sigterm.exp')
-rw-r--r--gdb/testsuite/gdb.base/gdb-sigterm.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/gdb-sigterm.exp b/gdb/testsuite/gdb.base/gdb-sigterm.exp
index 18db889..5d74888 100644
--- a/gdb/testsuite/gdb.base/gdb-sigterm.exp
+++ b/gdb/testsuite/gdb.base/gdb-sigterm.exp
@@ -78,7 +78,7 @@ proc do_test { pass } {
verbose -log "$pf_prefix $test: got eof"
set abort 0
}
- -re "infrun: process_event_stop_test: stepping inside range" {
+ -re {\[infrun\] process_event_stop_test: stepping inside range} {
incr stepping
exp_continue
}