Enable 'set print inferior-events' and improve detach/fork/kill/exit messages
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.threads / kill.exp
index 61384578e6d534efeafef03ec29ac70fcc1f33b2..aea4a986c64d17a0679b3d007a55ed9e98c0bc70 100644 (file)
@@ -21,7 +21,7 @@ standard_testfile
 # program and spawn several threads before trying to kill the program.
 
 proc test {threaded} {
-    global testfile srcfile
+    global testfile srcfile decimal
 
     with_test_prefix [expr ($threaded)?"threaded":"non-threaded"] {
 
@@ -68,7 +68,11 @@ proc test {threaded} {
        #
        # the above would mean that the remote end crashed.
 
-       gdb_test "kill" "^y" "kill program" "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 \\(.*\\) has been killed\\\]" "kill"
+           }
+       }
     }
 }
 
This page took 0.027172 seconds and 4 git commands to generate.