Update copyright year range in all GDB files.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / kill-after-signal.exp
index 4181beca446e68ea9dd9138455864c5ab2776acd..2ab11524fb4437c9b29264f710e0e2e0be321230 100644 (file)
@@ -1,4 +1,4 @@
-# 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
@@ -16,7 +16,7 @@
 standard_testfile .c
 
 if { ![can_single_step_to_signal_handler] } {
-    untested ${testfile}.exp
+    untested "cannot single-step to signal handler"
     return
 }
 
@@ -25,7 +25,7 @@ if [target_info exists gdb,nosignals] {
     continue
 }
 
-if [prepare_for_testing ${testfile}.exp ${testfile}] {
+if [prepare_for_testing "failed to prepare" ${testfile}] {
     return -1
 }
 
@@ -37,4 +37,8 @@ if ![runto_main] {
 
 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"
+    }
+}
This page took 0.025697 seconds and 4 git commands to generate.