From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id 0F5103858D28; Tue, 12 Apr 2022 14:36:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0F5103858D28 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom de Vries To: gdb-cvs@sourceware.org Subject: [binutils-gdb] [gdb/testsuite] Fix gdb.base/stap-probe.exp with read1 X-Act-Checkin: binutils-gdb X-Git-Author: Tom de Vries X-Git-Refname: refs/heads/master X-Git-Oldrev: ce70f11ffe868ba5c71594b43badd60552e29bb4 X-Git-Newrev: 63e0ee15a327b933a9e325908f6e5b334106290c Message-Id: <20220412143635.0F5103858D28@sourceware.org> Date: Tue, 12 Apr 2022 14:36:35 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Apr 2022 14:36:35 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D63e0ee15a327= b933a9e325908f6e5b334106290c commit 63e0ee15a327b933a9e325908f6e5b334106290c Author: Tom de Vries Date: Tue Apr 12 16:36:31 2022 +0200 [gdb/testsuite] Fix gdb.base/stap-probe.exp with read1 =20 When running test-case gdb.base/stap-probe.exp with make target check-r= ead1, I run into this and similar: ... FAIL: gdb.base/stap-probe.exp: without semaphore, not optimized: \ info probes stap (timeout) ... =20 Fix this by using gdb_test_lines instead of gdb_test. =20 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" =20 if {[string first "-DUSE_SEMAPHORES" $args] !=3D -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 .*" }