Enable 'set print inferior-events' and improve detach/fork/kill/exit messages
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / attach-non-pgrp-leader.exp
index dbe554eff31585a4d29bb03ce1343cf25e5b6f1a..60345f3894bcf32db8af76e0c3a8507131373578 100644 (file)
@@ -30,6 +30,7 @@ if { [build_executable ${testfile}.exp ${testfile} $srcfile {debug}] == -1 } {
 
 proc do_test {} {
     global binfile
+    global decimal
 
     set test_spawn_id [spawn_wait_for_attach $binfile]
     set parent_pid [spawn_id_get_pid $test_spawn_id]
@@ -52,7 +53,7 @@ proc do_test {} {
        }
 
        gdb_test "detach" \
-           "Detaching from program: .*process $parent_pid"
+           "Detaching from program: .*process $parent_pid\r\n\\\[Inferior $decimal \\(.*\\) detached\\\]"
     }
 
     # Start over, and attach to the child this time.
@@ -67,7 +68,7 @@ proc do_test {} {
        gdb_continue_to_breakpoint "marker"
 
        gdb_test "detach" \
-           "Detaching from program: .*process $child_pid"
+           "Detaching from program: .*process $child_pid\r\n\\\[Inferior $decimal \\(.*\\) detached\\\]"
     }
 
     kill_wait_spawned_process $test_spawn_id
This page took 0.027152 seconds and 4 git commands to generate.