From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id E8FD238515DD; Fri, 17 Mar 2023 18:25:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E8FD238515DD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679077537; bh=VD+XY1lQQGP6/4jQeaQFTidwKqzgyLzpJjexk2aq4xM=; h=From:To:Subject:Date:From; b=xAa8bnV+/ChCqaXZTBd3I2X+CPa7kcuOfiab+SzhBVhrXbKNyx2VOA73TOeZRCEn6 yf9f2RiRcY3OZLlwthuFBOadIC+SoGq0L9X/MySfIJswBjQ/yTAwwU5+wBuODShZwT MAg/Cy6q6+nEFjLk74r+c6HIhRSi3sx2rUQD+sgQ= 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 regexp in gdb.arch/ftrace-insn-reloc.exp X-Act-Checkin: binutils-gdb X-Git-Author: Tom de Vries X-Git-Refname: refs/heads/master X-Git-Oldrev: 1850ef87c62178705d84af9b4c9cf72f17b9fd93 X-Git-Newrev: 1b046c8eb920bd264d57d472e31a01a32bb5ae89 Message-Id: <20230317182537.E8FD238515DD@sourceware.org> Date: Fri, 17 Mar 2023 18:25:37 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D1b046c8eb920= bd264d57d472e31a01a32bb5ae89 commit 1b046c8eb920bd264d57d472e31a01a32bb5ae89 Author: Tom de Vries Date: Fri Mar 17 19:25:18 2023 +0100 [gdb/testsuite] Fix regexp in gdb.arch/ftrace-insn-reloc.exp =20 With test-case gdb.arch/ftrace-insn-reloc.exp and host board local-remote-host-notty and target board native-gdbserver I run into: ... (gdb) info sharedlibrary^M From To Syms Read Shared Object Library^M $hex $hex Yes /lib64/ld-linux-x86-64.so.2^M $hex $hex Yes /home/remote-host/libinproctrace.so^M $hex $hex Yes /lib64/libm.so.6^M $hex $hex Yes /lib64/libc.so.6^M $hex $hex Yes /lib64/libdl.so.2^M $hex $hex Yes (*) /usr/lib64/libstdc++.so.6^M $hex $hex Yes (*) /lib64/libgcc_s.so.1^M $hex $hex Yes /lib64/libpthread.so.0^M (*): Shared library is missing debugging information.^M (gdb) FAIL: gdb.arch/ftrace-insn-reloc.exp: IPA loaded ... due to trying to match libinproctrace.so using the target path, while t= he command lists it using the host path. =20 Fix this by making the regexp less strict. =20 Tested on x86_64-linux. Diff: --- gdb/testsuite/gdb.arch/ftrace-insn-reloc.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.arch/ftrace-insn-reloc.exp b/gdb/testsuite/g= db.arch/ftrace-insn-reloc.exp index b13438fda0e..7bc892263c7 100644 --- a/gdb/testsuite/gdb.arch/ftrace-insn-reloc.exp +++ b/gdb/testsuite/gdb.arch/ftrace-insn-reloc.exp @@ -53,7 +53,7 @@ if ![runto_main] { =20 gdb_reinitialize_dir $srcdir/$subdir =20 -if { [gdb_test "info sharedlibrary" ".*${remote_libipa}.*" "IPA loaded"] != =3D 0 } { +if { [gdb_test "info sharedlibrary" ".*[file tail $libipa].*" "IPA loaded"= ] !=3D 0 } { untested "could not find IPA lib loaded" return 1 }