-# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+# Copyright (C) 2011-2019 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
standard_testfile .c
if { ![can_single_step_to_signal_handler] } {
- untested ${testfile}.exp
+ untested "cannot single-step to signal handler"
return
}
continue
}
-if [prepare_for_testing ${testfile}.exp ${testfile}] {
+if [prepare_for_testing "failed to prepare" ${testfile}] {
return -1
}
gdb_test "continue" "Program received signal SIGUSR1, .*"
gdb_test "stepi" "\r\nhandler .*"
-gdb_test "kill" "^y" "kill" "Kill the program being debugged\\? \\(y or n\\) $" "y"
+gdb_test_multiple "kill" "kill" {
+ -re "Kill the program being debugged\\? \\(y or n\\) $" {
+ gdb_test "y" "\\\[Inferior $decimal \\(.*\\) killed\\\]" "kill"
+ }
+}