]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Fix gdb.base/stap-probe.exp with read1
authorTom de Vries <tdevries@suse.de>
Thu, 14 Apr 2022 11:52:19 +0000 (13:52 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 14 Apr 2022 11:52:19 +0000 (13:52 +0200)
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

index e86c7897b93d75fbe0040a5322a82283325b4b9d..75ad56baff629ed01b1c38ddcfcf9f3c68ae6adb 100644 (file)
@@ -42,10 +42,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 .*"
     }