From 8cac2b318b1bf14d468b769187a8233a1220c48e Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 25 Aug 2020 11:06:43 -0400 Subject: [PATCH] gdb/testsuite: fix gdb.threads/stepi-random-signal.exp pattern (gdb/26532) Commit 1eb8556f5a8b ("gdb: add infrun_debug_printf macro") changed the debug output format for `set debug infrun 1`. The test gdb.threads/stepi-random-signal.exp uses that debug output, and was updated, but not correctly. It results in this failure: FAIL: gdb.threads/stepi-random-signal.exp: stepi (no random signal) Fix it by adjusting the pattern in the test. gdb/testsuite/ChangeLog: PR gdb/26532 * gdb.threads/stepi-random-signal.exp: Update pattern. Change-Id: If5fa525e9545e32a286effe6a6184358374bd37c --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.threads/stepi-random-signal.exp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 2ec908496c5..deab76474cf 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-08-25 Simon Marchi + + PR gdb/26532 + * gdb.threads/stepi-random-signal.exp: Update pattern. + 2020-08-25 Simon Marchi PR gdb/26532 diff --git a/gdb/testsuite/gdb.threads/stepi-random-signal.exp b/gdb/testsuite/gdb.threads/stepi-random-signal.exp index fa20f38ba61..9a8b38c2acf 100644 --- a/gdb/testsuite/gdb.threads/stepi-random-signal.exp +++ b/gdb/testsuite/gdb.threads/stepi-random-signal.exp @@ -87,7 +87,7 @@ set seen 0 set test "stepi" if {[gdb_test_multiple "stepi" "$test" { - -re "infrun: handle_signal_stop: random signal" { + -re {\[infrun\] handle_signal_stop: random signal} { set seen 1 exp_continue } -- 2.30.2