aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2022-04-12 16:36:31 +0200
committerTom de Vries <tdevries@suse.de>2022-04-12 16:36:31 +0200
commit63e0ee15a327b933a9e325908f6e5b334106290c (patch)
treee83903c74eea7b483474dbceada136d11a1dc2f1 /gdb
parentce70f11ffe868ba5c71594b43badd60552e29bb4 (diff)
downloadgdb-63e0ee15a327b933a9e325908f6e5b334106290c.zip
gdb-63e0ee15a327b933a9e325908f6e5b334106290c.tar.gz
gdb-63e0ee15a327b933a9e325908f6e5b334106290c.tar.bz2
[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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.base/stap-probe.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/stap-probe.exp b/gdb/testsuite/gdb.base/stap-probe.exp
index b0b690a..31a0548 100644
--- a/gdb/testsuite/gdb.base/stap-probe.exp
+++ b/gdb/testsuite/gdb.base/stap-probe.exp
@@ -134,10 +134,10 @@ proc stap_test {exec_name {args ""}} {
"check argument not at probe point"
if {[string first "-DUSE_SEMAPHORES" $args] != -1} {
- gdb_test "info probes stap" \
+ gdb_test_lines "info probes stap" "" \
"test *user *$hex *$hex .*"
} else {
- gdb_test "info probes stap" \
+ gdb_test_lines "info probes stap" "" \
"test *user *$hex .*"
}