Skip to content

Commit 5d47e20

Browse files
committed
[gdb/testsuite] Fix re-used exec in gdb.arch/ftrace-insn-reloc.exp
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. Fix this by making the executable names unique. Tested on x86_64-linux.
1 parent fdefd3b commit 5d47e20

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

gdb/testsuite/gdb.arch/ftrace-insn-reloc.exp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@
1515
load_lib "trace-support.exp"
1616

1717
standard_testfile insn-reloc.c
18-
set executable $testfile
19-
set expfile $testfile.exp
2018

2119
# Some targets have leading underscores on assembly symbols.
2220
set additional_flags [gdb_target_symbol_prefix_flags]
2321

24-
if [prepare_for_testing "failed to prepare" $executable $srcfile \
22+
if [prepare_for_testing "failed to prepare" $testfile-no-ipa $srcfile \
2523
[list debug $additional_flags]] {
2624
return -1
2725
}
@@ -47,7 +45,7 @@ if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
4745
untested "failed to compile"
4846
return -1
4947
}
50-
clean_restart ${executable}
48+
clean_restart $testfile
5149

5250
if ![runto_main] {
5351
return 0

0 commit comments

Comments
 (0)