[gdb/testsuite] Fix gdb.base/stap-probe.exp with read1
authorTom de Vries <tdevries@suse.de>
Tue, 12 Apr 2022 14:36:31 +0000 (16:36 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 12 Apr 2022 14:36:31 +0000 (16:36 +0200)
commit63e0ee15a327b933a9e325908f6e5b334106290c
treee83903c74eea7b483474dbceada136d11a1dc2f1
parentce70f11ffe868ba5c71594b43badd60552e29bb4
[gdb/testsuite] Fix gdb.base/stap-probe.exp with read1

When running test-case gdb.base/stap-probe.exp with make target check-read1, I
run into this and similar:
...
FAIL: gdb.base/stap-probe.exp: without semaphore, not optimized: \
  info probes stap (timeout)
...

Fix this by using gdb_test_lines instead of gdb_test.

Tested on x86_64-linux.
gdb/testsuite/gdb.base/stap-probe.exp