From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id 86B093858C53; Thu, 14 Apr 2022 11:52:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 86B093858C53 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-12-branch] [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/gdb-12-branch X-Git-Oldrev: d4c9e8f5834939909859ad748c31b7a3d239aeab X-Git-Newrev: f48fc32448205963c597975f1bce3db3c86094ad Message-Id: <20220414115223.86B093858C53@sourceware.org> Date: Thu, 14 Apr 2022 11:52:23 +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: Thu, 14 Apr 2022 11:52:23 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Df48fc3244820= 5963c597975f1bce3db3c86094ad commit f48fc32448205963c597975f1bce3db3c86094ad Author: Tom de Vries Date: Thu Apr 14 13:52:19 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 e86c7897b93..75ad56baff6 100644 --- a/gdb/testsuite/gdb.base/stap-probe.exp +++ b/gdb/testsuite/gdb.base/stap-probe.exp @@ -42,10 +42,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 .*" }