Fix more cases of improper test names
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / kill-after-signal.exp
CommitLineData
618f726f 1# Copyright (C) 2011-2016 Free Software Foundation, Inc.
ed731959
JK
2
3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation; either version 3 of the License, or
6# (at your option) any later version.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with this program. If not, see <http://www.gnu.org/licenses/>.
15
f8b41b00 16standard_testfile .c
ab254057
YQ
17
18if { ![can_single_step_to_signal_handler] } {
5b362f04 19 untested "cannot single-step to signal handler"
ab254057
YQ
20 return
21}
22
10e339df
PA
23if [target_info exists gdb,nosignals] {
24 verbose "Skipping kill-after-signal.exp because of nosignals."
25 continue
26}
27
5b362f04 28if [prepare_for_testing "failed to prepare" ${testfile}] {
ed731959
JK
29 return -1
30}
31
32gdb_test "handle SIGUSR1 stop print pass" "SIGUSR1\[ \t\]+Yes\[ \t\]+Yes\[ \t\]+Yes\[ \t\]+.*"
33
34if ![runto_main] {
35 return -1
36}
37
38gdb_test "continue" "Program received signal SIGUSR1, .*"
39gdb_test "stepi" "\r\nhandler .*"
40gdb_test "kill" "^y" "kill" "Kill the program being debugged\\? \\(y or n\\) $" "y"
This page took 1.117259 seconds and 4 git commands to generate.