[gdb/testsuite] Fix read1 timeout in gdb.base/gdb-sigterm.exp
authorTom de Vries <tdevries@suse.de>
Tue, 11 May 2021 12:22:11 +0000 (14:22 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 11 May 2021 12:22:11 +0000 (14:22 +0200)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/gdb-sigterm.exp

index ee963ee6ab296e95edf3a4c6b374d9352ea8a720..beee49bfb77854049dc6b82a8a45c893cdad5857 100644 (file)
@@ -1,3 +1,7 @@
+2021-05-11  Tom de Vries  <tdevries@suse.de>
+
+       * gdb.base/gdb-sigterm.exp: Fix exp_continue regexp.
+
 2021-05-11  Bhuvanendra Kumar  <Bhuvanendra.KumarN@amd.com>
 
        * gdb.fortran/array-element.exp: Breakpoint location is modified.
index 18db889546d348a96fdcfab7f620850300573b3c..5d74888abb6d43d723aecf4f0c49255cb17a230b 100644 (file)
@@ -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
        }
This page took 0.033324 seconds and 4 git commands to generate.