]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/testsuite] Fix timeout in gdb.threads/inf-thr-count.exp
authorTom de Vries <tdevries@suse.de>
Fri, 2 May 2025 08:28:13 +0000 (10:28 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 2 May 2025 08:28:13 +0000 (10:28 +0200)
commit3cecedf089a996d61ba73582b452786e3c6af869
tree593d1245197d7078857912ccc1e031fbbc4a18e2
parent588fb53953d3f395abaa1530f406b4389c33263e
[gdb/testsuite] Fix timeout in gdb.threads/inf-thr-count.exp

With test-case gdb.threads/inf-thr-count.exp, check-readmore and
READMORE_SLEEP=1000 I run into:
...
(gdb) set variable spin = 0^M
(gdb) ^M
Thread 1 "inf-thr-count" hit Breakpoint 2, breakpt () at /data/vries/gdb/src/gdb/testsuite/gdb.threads/inf-thr-count.c:49^M
49      }^M
FAIL: gdb.threads/inf-thr-count.exp: set 'spin' flag to allow main thread to exit (timeout)
PASS: gdb.threads/inf-thr-count.exp: wait for main thread to stop
...

Fix this by using -no-prompt-anchor.

Tested on x86_64-linux.
gdb/testsuite/gdb.threads/inf-thr-count.exp