From: Tom de Vries Date: Wed, 3 Sep 2025 14:15:37 +0000 (+0200) Subject: [gdb/testsuite] Fix clean_restart in gdb.linespec X-Git-Tag: gdb-17-branchpoint~59 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=95014c4fba6bdeed0f32f983734cb6e469fde952;p=thirdparty%2Fbinutils-gdb.git [gdb/testsuite] Fix clean_restart in gdb.linespec Fix clean_restart in the test-cases in gdb.linespec. Tested on x86_64-linux. --- diff --git a/gdb/testsuite/gdb.linespec/explicit.exp b/gdb/testsuite/gdb.linespec/explicit.exp index 12eaa51f5ef..b859b4443ee 100644 --- a/gdb/testsuite/gdb.linespec/explicit.exp +++ b/gdb/testsuite/gdb.linespec/explicit.exp @@ -608,7 +608,7 @@ namespace eval $testfile { } # Test interaction of condition command and explicit linespec conditons. - clean_restart [standard_output_file $exefile] + clean_restart $exefile set tst "condition_command overrides explicit linespec condition" if {![runto_main]} { diff --git a/gdb/testsuite/gdb.linespec/line-breakpoint-outside-function.exp b/gdb/testsuite/gdb.linespec/line-breakpoint-outside-function.exp index 012be6bbd53..120ee6cae40 100644 --- a/gdb/testsuite/gdb.linespec/line-breakpoint-outside-function.exp +++ b/gdb/testsuite/gdb.linespec/line-breakpoint-outside-function.exp @@ -32,7 +32,7 @@ if {[build_executable "failed to prepare" ${testfile} ${srcfile} $opts]} { } proc do_test {} { - clean_restart $::binfile + clean_restart $::testfile # To make things easier, just so we don't have to deal with the question. gdb_test_no_output "set breakpoint pending on"