[binutils-gdb] [gdb/testsuite] Fix timeout in gdb.threads/vfork-multi-inferior.exp
Tom de Vries via Gdb-cvs <[email protected]> Sat, 25 Jul 2026 06:29:20 +0000 (GMT)
| Newsgroups | gmane.comp.gdb.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dd073260de4fc= ce27a4107e2a0932ca8b84d53529 commit d073260de4fcce27a4107e2a0932ca8b84d53529 Author: Tom de Vries <[email protected]> Date: Sat Jul 25 08:29:16 2026 +0200 [gdb/testsuite] Fix timeout in gdb.threads/vfork-multi-inferior.exp =20 With test-case gdb.threads/vfork-multi-inferior.exp I get either: ... (gdb) run & Starting program: vfork-multi-inferior-sleep (gdb) PASS: $exp: method=3Dnon-stop: run inferior 2 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". inferior 1 [Switching to inferior 1 [<null>] (<noexec>)] (gdb) PASS: $exp: method=3Dnon-stop: inferior 1 ... or: ... (gdb) run & Starting program: vfork-multi-inferior-sleep (gdb) PASS: $exp: method=3Dnon-stop: run inferior 2 inferior 1^M [Switching to inferior 1 [<null>] (<noexec>)]^M (gdb) PASS: $exp: method=3Dnon-stop: inferior 1 [Thread debugging using libthread_db enabled]^M Using host libthread_db library "/lib64/libthread_db.so.1".^M ... =20 With a 16.3-based package on aarch64-linux, I ran into: ... (gdb) run & Starting program: vfork-multi-inferior-sleep (gdb) PASS: $exp: method=3Dnon-stop: run inferior 2 inferior 1 [Switching to inferior 1 [<null>] (<noexec>)] (gdb) [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". FAIL: $exp: method=3Dnon-stop: inferior 1 (timeout) ... =20 Unfortunately I have not been able to reproduce this. =20 Fix this using -no-prompt-anchor. =20 See also commit 5f69c00a6e0 ("[gdb/testsuite] Fix timeout in gdb.base/async-shell.exp"). =20 Reviewed-By: Keith Seitz <[email protected]> Approved-By: Kevin Buettner <[email protected]> =20 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D34427 Diff: --- gdb/testsuite/gdb.threads/vfork-multi-inferior.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.threads/vfork-multi-inferior.exp b/gdb/tests= uite/gdb.threads/vfork-multi-inferior.exp index e258ec719e9..f6c90bf0655 100644 --- a/gdb/testsuite/gdb.threads/vfork-multi-inferior.exp +++ b/gdb/testsuite/gdb.threads/vfork-multi-inferior.exp @@ -86,7 +86,7 @@ proc do_test {method} { } =20 # Start the first inferior. - gdb_test "inferior 1" "Switching to inferior 1 .*" + gdb_test -no-prompt-anchor "inferior 1" "Switching to inferior 1 .*" gdb_file_cmd ${::binfile} gdb_test "break should_break_here" "Breakpoint $::decimal at .*" gdb_test "start" "Thread 1.1 .* hit Temporary breakpoint.*" \