]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Fix clean_restart <absolute filename> in gdb.objc
authorTom de Vries <tdevries@suse.de>
Wed, 3 Sep 2025 12:39:14 +0000 (14:39 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 3 Sep 2025 12:39:14 +0000 (14:39 +0200)
Fix clean_restart <absolute filename> in the test-cases in gdb.objc.

Tested on x86_64-linux, using 'lappend options "nowarnings"' in
gdb_compile_shlib_pthreads.  See also PR testsuite/24807.

gdb/testsuite/gdb.objc/basicclass.exp
gdb/testsuite/gdb.objc/nondebug.exp
gdb/testsuite/gdb.objc/objcdecode.exp

index 7f29affe28c918f5d171b584ed4c0f60b58b586d..9e40c7138dcc3798aab144b030dbac2762eb9de7 100644 (file)
@@ -72,7 +72,7 @@ proc deduce_language_of_main {} {
 proc do_objc_tests {} {
     global binfile
 
-    clean_restart $binfile
+    clean_restart $::testfile
 
     deduce_language_of_main
 }
index dfdd9bce9c0984e6020c8cbc2e36f591c729c9f0..9ca86ff8189d1d3ffa579e705ebe2265b108e1b8 100644 (file)
@@ -29,7 +29,7 @@ if {[gdb_compile_objc "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [
 
 proc do_objc_tests {} {
     global binfile
-    clean_restart $binfile
+    clean_restart $::testfile
 }
 
 do_objc_tests
index b7c38dbc52ad2707ab693461d6c3cbf8cf826cf3..5414f0f96f30c6112b16eeaa619fa761179a0195 100644 (file)
@@ -29,7 +29,7 @@ if {[gdb_compile_objc "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [
 
 proc do_objc_tests {} {
     global binfile
-    clean_restart $binfile
+    clean_restart $::testfile
 }
 
 do_objc_tests