summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads/ia64-sigill.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.threads/ia64-sigill.exp')
-rw-r--r--gdb/testsuite/gdb.threads/ia64-sigill.exp16
1 files changed, 10 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.threads/ia64-sigill.exp b/gdb/testsuite/gdb.threads/ia64-sigill.exp
index e4d3056d8e9..636b387d388 100644
--- a/gdb/testsuite/gdb.threads/ia64-sigill.exp
+++ b/gdb/testsuite/gdb.threads/ia64-sigill.exp
@@ -57,17 +57,21 @@ gdb_test_no_output "set debug infrun 1"
# The ia64 SIGILL signal is visible only in the lin-lwp debug.
-gdb_test "continue" "Breakpoint \[0-9\]+,( .* in)? thread_func .*"
+set prompt "$gdb_prompt \\\[infrun\\\] fetch_inferior_event: exit\r\n$"
+gdb_test_multiple "continue" "continue" -prompt $prompt {
+ -re "Breakpoint \[0-9\]+,( .* in)? thread_func .*$prompt$" {
+ pass $gdb_test_name
+ }
+}
gdb_test_no_output {delete $sigill_bpnum}
-set test "continue for the pending signal"
-gdb_test_multiple "continue" $test {
- -re "Breakpoint \[0-9\]+, .*break-at-exit.*\r\n$gdb_prompt $" {
+gdb_test_multiple "continue" "continue for the pending signal" -prompt $prompt {
+ -re "Breakpoint \[0-9\]+, .*break-at-exit.*\r\n$prompt$" {
# Breakpoint has been skipped in the other thread.
- pass $test
+ pass $gdb_test_name
}
-re " received signal .*\r\n$gdb_prompt $" {
- fail $test
+ fail $gdb_test_name
}
}