aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2025-09-03 19:49:55 +0200
committerTom de Vries <tdevries@suse.de>2025-09-03 19:49:55 +0200
commite66c9cb4d1254c7578d97563d058e59f0c10cc48 (patch)
tree56bf555cd8fd05d082a00308ba5756243e9f3451
parent4d47956f3e4a457311386bd81a050dea68737a91 (diff)
downloadbinutils-e66c9cb4d1254c7578d97563d058e59f0c10cc48.zip
binutils-e66c9cb4d1254c7578d97563d058e59f0c10cc48.tar.gz
binutils-e66c9cb4d1254c7578d97563d058e59f0c10cc48.tar.bz2
gdb/testsuite] Fix clean_restart <absolute filename> in gdb.compile
Fix clean_restart <absolute filename> in the test-cases in gdb.compile. Tested on x86_64-linux, fedora rawhide.
-rw-r--r--gdb/testsuite/gdb.compile/compile-tls.exp2
-rw-r--r--gdb/testsuite/gdb.compile/compile.exp7
2 files changed, 5 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.compile/compile-tls.exp b/gdb/testsuite/gdb.compile/compile-tls.exp
index aaa8e03..e7db1da 100644
--- a/gdb/testsuite/gdb.compile/compile-tls.exp
+++ b/gdb/testsuite/gdb.compile/compile-tls.exp
@@ -26,7 +26,7 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" \
return -1
}
-clean_restart ${binfile}
+clean_restart ${::testfile}
if {![runto_main]} {
return 0
}
diff --git a/gdb/testsuite/gdb.compile/compile.exp b/gdb/testsuite/gdb.compile/compile.exp
index ff20b2e..eb87141 100644
--- a/gdb/testsuite/gdb.compile/compile.exp
+++ b/gdb/testsuite/gdb.compile/compile.exp
@@ -378,8 +378,9 @@ if { $srcfile3 != "" } {
require allow_shlib_tests
-set libbin [standard_output_file ${testfile}-shlib.so]
-set binfile [standard_output_file ${testfile}-shlib]
+set testfile $testfile-shlib
+set libbin [standard_output_file $testfile.so]
+set binfile [standard_output_file $testfile]
if { [gdb_compile_shlib ${srcdir}/${subdir}/${srcfile2} $libbin {debug}] != ""
|| [gdb_compile ${srcdir}/${subdir}/${srcfile} $binfile executable \
@@ -387,7 +388,7 @@ if { [gdb_compile_shlib ${srcdir}/${subdir}/${srcfile2} $libbin {debug}] != ""
return -1
}
-clean_restart $binfile
+clean_restart $testfile
gdb_load_shlib $libbin
if ![runto_main] {