[gdb/testsuite] Fix gdb.base/structs.exp timeout with check-read1
authorTom de Vries <tdevries@suse.de>
Thu, 1 Aug 2019 08:48:11 +0000 (10:48 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 1 Aug 2019 08:48:11 +0000 (10:48 +0200)
commit2a3ad588e0758bc2c753dfa216c344036e5a22bc
tree52ee93595102ac3ce0ce201802f1cb5d61773e1d
parent117eb594228cf5447e49475e4fb33480c1f717a7
[gdb/testsuite] Fix gdb.base/structs.exp timeout with check-read1

With gdb.base/structs.exp and check-read1 we get:
...
FAIL: gdb.base/structs.exp: p chartest (timeout)
...

Fix this by using gdb_test_sequence.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2019-08-01  Tom de Vries  <tdevries@suse.de>

PR testsuite/24863
* gdb.base/structs.exp: Fix check-read1 timeout using
gdb_test_sequence.
* lib/gdb.exp (tcl_version_at_least, lrepeat): New proc.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/structs.exp
gdb/testsuite/lib/gdb.exp