[gdb/testsuite] Fix gdb.fortran/nested-funcs-2.exp with gdbserver
authorTom de Vries <tdevries@suse.de>
Thu, 14 May 2020 15:24:49 +0000 (17:24 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 14 May 2020 15:24:49 +0000 (17:24 +0200)
commit02eba61aa6cad683e96cf13f483adc04982c0c2b
treee43988ca190cfa16c2af7c2f6d3b76354e511088
parent971a374783061ad1d1574508235e364dfd0fc6e2
[gdb/testsuite] Fix gdb.fortran/nested-funcs-2.exp with gdbserver

When running test-case gdb.fortran/nested-funcs-2.exp with target board
native-gdbserver, we have:
...
(gdb) call contains_keyword::subroutine_to_call()^M
(gdb) FAIL: gdb.fortran/nested-funcs-2.exp: src_prefix=0: nest_prefix=1: \
  call contains_keyword::subroutine_to_call()
...

This is caused by the fact that we're trying to match inferior output using
gdb_test.

Fix this by using gdb_test_stdio instead.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

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

* gdb.fortran/nested-funcs-2.exp: Use gdb_test_stdio to test inferior
output.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.fortran/nested-funcs-2.exp