[gdb/testsuite] Fix gdb.cp/cplusfuncs.exp with check-read1
authorTom de Vries <tdevries@suse.de>
Thu, 10 Jun 2021 05:36:19 +0000 (07:36 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 10 Jun 2021 05:36:19 +0000 (07:36 +0200)
commit0cc809fa0f947227bfa156df576a6943f5bbbdfe
tree0222e8d2bcdc4a0cf4d8c1da8d20d24178290385
parentc572c4580e774f1ec0115948d31dcf8a5b04878e
[gdb/testsuite] Fix gdb.cp/cplusfuncs.exp with check-read1

When running check-read1, we run into:
...
FAIL: gdb.cp/cplusfuncs.exp: info function for "operator=(" (timeout)
...

Fix this by using using gdb_test_lines in info_func_regexp.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

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

* gdb.cp/cplusfuncs.exp (info_func_regexp): Use gdb_test_lines.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/cplusfuncs.exp