[gdb/testsuite] Fix check-read1 FAIL in attach-many-short-lived-threads.exp
authorTom de Vries <tdevries@suse.de>
Sat, 14 Mar 2020 14:48:26 +0000 (15:48 +0100)
committerTom de Vries <tdevries@suse.de>
Sat, 14 Mar 2020 14:48:26 +0000 (15:48 +0100)
commit54c4382534f0c894434deca5eb89cd02661d6feb
tree7c4a9d2b02b993ddcccc4989662642f571d65531
parent75c56d3d1298de72aa67555f2c723a80b4818e04
[gdb/testsuite] Fix check-read1 FAIL in attach-many-short-lived-threads.exp

When running test-case gdb.threads/attach-many-short-lived-threads.exp with
check-read1, I ran into:
...
FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 1: \
  no new threads (timeout)
...

Fix this by rewriting the gdb_test_multiple call using -lbl and exp_continue.

Tested on x86_64-linux, with make targets check and check-read1.

gdb/testsuite/ChangeLog:

2020-03-14  Tom de Vries  <tdevries@suse.de>

* gdb.threads/attach-many-short-lived-threads.exp: Read "info threads"
result in line-by-line fashion.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/attach-many-short-lived-threads.exp