public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] [gdb/testsuite] Fix gdb.base/stap-probe.exp with read1
@ 2022-04-12 14:36 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2022-04-12 14:36 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=63e0ee15a327b933a9e325908f6e5b334106290c

commit 63e0ee15a327b933a9e325908f6e5b334106290c
Author: Tom de Vries <tdevries@suse.de>
Date:   Tue Apr 12 16:36:31 2022 +0200

    [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.

Diff:
---
 gdb/testsuite/gdb.base/stap-probe.exp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gdb/testsuite/gdb.base/stap-probe.exp b/gdb/testsuite/gdb.base/stap-probe.exp
index b0b690a4dcb..31a054840a5 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 .*"
     }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-12 14:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-12 14:36 [binutils-gdb] [gdb/testsuite] Fix gdb.base/stap-probe.exp with read1 Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).