aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2021-01-26 10:00:39 +0100
committerTom de Vries <tdevries@suse.de>2021-01-26 10:00:39 +0100
commit4ca40594f94e190467eb7646cb53d6ce575b0c76 (patch)
tree7d138845aa0b049f35e55bf42b59bb2c85a23e17 /gdb/testsuite
parentd0021af39c41d8f76e596f9c923cd41955fc050b (diff)
downloadgdb-4ca40594f94e190467eb7646cb53d6ce575b0c76.zip
gdb-4ca40594f94e190467eb7646cb53d6ce575b0c76.tar.gz
gdb-4ca40594f94e190467eb7646cb53d6ce575b0c76.tar.bz2
[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 <tdevries@suse.de> * gdb.threads/killed-outside.exp: Allow regular output.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.threads/killed-outside.exp3
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 9d2b0fa..ec5db06 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2021-01-26 Tom de Vries <tdevries@suse.de>
+ * gdb.threads/killed-outside.exp: Allow regular output.
+
+2021-01-26 Tom de Vries <tdevries@suse.de>
+
* gdb.opt/solib-intra-step.exp: Handle stepping into thunk.
2021-01-25 Tom de Vries <tdevries@suse.de>
diff --git a/gdb/testsuite/gdb.threads/killed-outside.exp b/gdb/testsuite/gdb.threads/killed-outside.exp
index 303328d..7050a4b 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
+ }
}