From 4ca40594f94e190467eb7646cb53d6ce575b0c76 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Tue, 26 Jan 2021 10:00:39 +0100 Subject: [PATCH] [gdb/testsuite] Fix gdb.threads/killed-outside.exp with -m32 When running test-case gdb.threads/killed-outside.exp with target board unix/-m32, we run into: ... (gdb) PASS: gdb.threads/killed-outside.exp: get pid of inferior Executing on target: kill -9 10969 (timeout = 300) spawn -ignore SIGHUP kill -9 10969^M continue^M Continuing.^M [Thread 0xf7cb4b40 (LWP 10973) exited]^M ^M Program terminated with signal SIGKILL, Killed.^M The program no longer exists.^M (gdb) FAIL: gdb.threads/killed-outside.exp: prompt after first continue ... Fix this by allowing this output. Tested on x86_64-linux. gdb/testsuite/ChangeLog: 2021-01-26 Tom de Vries * gdb.threads/killed-outside.exp: Allow regular output. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.threads/killed-outside.exp | 3 +++ 2 files changed, 7 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 9d2b0fae87b..ec5db0612e0 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2021-01-26 Tom de Vries + + * gdb.threads/killed-outside.exp: Allow regular output. + 2021-01-26 Tom de Vries * gdb.opt/solib-intra-step.exp: Handle stepping into thunk. diff --git a/gdb/testsuite/gdb.threads/killed-outside.exp b/gdb/testsuite/gdb.threads/killed-outside.exp index 303328dd27a..7050a4b84ba 100644 --- a/gdb/testsuite/gdb.threads/killed-outside.exp +++ b/gdb/testsuite/gdb.threads/killed-outside.exp @@ -54,4 +54,7 @@ gdb_test_multiple "continue" "prompt after first continue" { } } } + -re -wrap ".*$killed_msg.*$no_longer_exists_msg" { + pass $gdb_test_name + } } -- 2.30.2