From: Viktor Szakats Date: Tue, 1 Apr 2025 09:02:57 +0000 (+0200) Subject: runtests: fix bundled test invocation with `-g` option X-Git-Tag: curl-8_13_0~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93964c21f403bdb157c5a0cbb3e9670e36f7a386;p=thirdparty%2Fcurl.git 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 --- 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;