From 93964c21f403bdb157c5a0cbb3e9670e36f7a386 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 1 Apr 2025 11:02:57 +0200 Subject: [PATCH] runtests: fix bundled test invocation with `-g` option Fixes: ``` $ ./runtests.pl -g 1940 ./libtest/libtests lib1940: No such file or directory. Argument list to give program being debugged when it is started is "http://127.0.0.1:44547/1940". ``` Reported-by: Daniel Stenberg Fixes #16893 Closes #16898 --- tests/runner.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/runner.pm b/tests/runner.pm index 14acbcdd92..d003a334e3 100644 --- a/tests/runner.pm +++ b/tests/runner.pm @@ -939,7 +939,12 @@ sub singletest_run { $CMDLINE=exerunner() . $CMDLINE; if($bundle) { - $CMDLINE.=" $tool_name"; + if($gdbthis) { + $cmdargs =" $tool_name$cmdargs"; + } + else { + $CMDLINE.=" $tool_name"; + } } $DBGCURL=$CMDLINE; -- 2.47.3