diff options
Diffstat (limited to 'gdb/testsuite/gdb.base/attach-non-pgrp-leader.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/attach-non-pgrp-leader.exp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/attach-non-pgrp-leader.exp b/gdb/testsuite/gdb.base/attach-non-pgrp-leader.exp index dbe554eff31..60345f3894b 100644 --- a/gdb/testsuite/gdb.base/attach-non-pgrp-leader.exp +++ b/gdb/testsuite/gdb.base/attach-non-pgrp-leader.exp @@ -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 |