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

Tested on x86_64-linux.

gdb/testsuite/gdb.gdb/index-file.exp
gdb/testsuite/gdb.gdb/unittest.exp

index a9af21181436fef26969705a0f950976e8e01057..ee5b6451274b1d11b916fd0dc608edcb13d05934 100644 (file)
@@ -39,7 +39,8 @@ if { $filename eq "" } {
 
 with_timeout_factor $timeout_factor {
     # Start GDB, load FILENAME.
-    clean_restart $filename
+    clean_restart
+    gdb_load $filename
 }
 
 # Record how many worker threads GDB is using.
index 795a32bb4f900bc67ef4bba6017ccd8fcb640882..38955ca34f90c3b7a94ca108f88b704d482048a9 100644 (file)
@@ -63,7 +63,7 @@ proc run_selftests { binfile } {
        gdb_exit
        gdb_start
     } else {
-       clean_restart ${binfile}
+       clean_restart ${::testfile}
     }
 
     if { [is_remote host] } {