From: Simon Marchi Date: Tue, 25 Aug 2020 15:06:43 +0000 (-0400) Subject: gdb/testsuite: fix gdb.threads/stepi-random-signal.exp pattern (gdb/26532) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8cac2b318b1bf14d468b769187a8233a1220c48e;p=binutils-gdb.git 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 --- 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 }