[gdb/testsuite] Fix gdb.base/info-macros.exp with check-read1
authorTom de Vries <tdevries@suse.de>
Tue, 8 Jun 2021 13:36:46 +0000 (15:36 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 8 Jun 2021 13:36:46 +0000 (15:36 +0200)
commitc3cfd9eb5ba7b58fae227b539e3a683e76208921
tree11e6091e1eb2afb465477631b4bdd565323837b2
parent58f076c6f86dc8361f2e6a6c67940fd9b5ad9a60
[gdb/testsuite] Fix gdb.base/info-macros.exp with check-read1

With check-read1 we run into:
...
FAIL: gdb.base/info-macros.exp: info macros info-macros.c:42 (timeout)
...

Fix this by using gdb_test_lines from gdb.base/info-types.exp.tcl.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2021-06-08  Tom de Vries  <tdevries@suse.de>

* gdb.base/info-types.exp.tcl (match_line, gdb_test_lines): Move ...
* lib/gdb.exp: ... here.
* gdb.base/info-macros.exp: Use gdb_test_lines.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/info-macros.exp
gdb/testsuite/gdb.base/info-types.exp.tcl
gdb/testsuite/lib/gdb.exp