From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id 34DF23858C83; Wed, 15 Mar 2023 15:38:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 34DF23858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1678894709; bh=8gdSUx5W33T2qCVu6KUTfmFloj+CGf+/cFTE6TKnp34=; h=From:To:Subject:Date:From; b=XwwUemZv/xyEi0VlMPiJqTGKkkKZ6FPwH+sXJgfbMfbnoPEWufzhQTAJTRRTGzKaG vckDM8PFa/0ehqqlISf+21fde9n4rCgrLomwiiZ+VhFiApXdDUU6U2cNgey4INrrJ0 v6I/WO1dQPOX0egLbxtz3B6+wuqLD2KksqS9vkL4= 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 re-used exec 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: fdefd3b5314677eb838d28866d0fcf6cf6546222 X-Git-Newrev: 5d47e20b22ad00ea059afca86e12c6f0f06e2d4f Message-Id: <20230315153829.34DF23858C83@sourceware.org> Date: Wed, 15 Mar 2023 15:38:29 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D5d47e20b22ad= 00ea059afca86e12c6f0f06e2d4f commit 5d47e20b22ad00ea059afca86e12c6f0f06e2d4f Author: Tom de Vries Date: Wed Mar 15 16:38:03 2023 +0100 [gdb/testsuite] Fix re-used exec in gdb.arch/ftrace-insn-reloc.exp =20 In test-case gdb.arch/ftrace-insn-reloc.exp we generate two executables= with the same name, which is confusing and known to cause trouble. =20 Fix this by making the executable names unique. =20 Tested on x86_64-linux. Diff: --- gdb/testsuite/gdb.arch/ftrace-insn-reloc.exp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gdb/testsuite/gdb.arch/ftrace-insn-reloc.exp b/gdb/testsuite/g= db.arch/ftrace-insn-reloc.exp index a353f386ec0..a00c4dbe2ff 100644 --- a/gdb/testsuite/gdb.arch/ftrace-insn-reloc.exp +++ b/gdb/testsuite/gdb.arch/ftrace-insn-reloc.exp @@ -15,13 +15,11 @@ load_lib "trace-support.exp" =20 standard_testfile insn-reloc.c -set executable $testfile -set expfile $testfile.exp =20 # Some targets have leading underscores on assembly symbols. set additional_flags [gdb_target_symbol_prefix_flags] =20 -if [prepare_for_testing "failed to prepare" $executable $srcfile \ +if [prepare_for_testing "failed to prepare" $testfile-no-ipa $srcfile \ [list debug $additional_flags]] { return -1 } @@ -47,7 +45,7 @@ if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \ untested "failed to compile" return -1 } -clean_restart ${executable} +clean_restart $testfile =20 if ![runto_main] { return 0