Skip to content
Snippets Groups Projects
Commit 5d47e20b authored by Tom de Vries's avatar Tom de Vries
Browse files

[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.
parent fdefd3b5
No related branches found
No related tags found
No related merge requests found
......@@ -15,13 +15,11 @@
load_lib "trace-support.exp"
standard_testfile insn-reloc.c
set executable $testfile
set expfile $testfile.exp
# Some targets have leading underscores on assembly symbols.
set additional_flags [gdb_target_symbol_prefix_flags]
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
if ![runto_main] {
return 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment