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
This commit is contained in:
Viktor Szakats 2025-04-01 11:02:57 +02:00
parent 0042f11d6e
commit 93964c21f4
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -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;