]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: make sure gdb gets the right path for -x
authorDaniel Stenberg <daniel@haxx.se>
Wed, 26 Feb 2025 09:48:40 +0000 (10:48 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 26 Feb 2025 12:12:04 +0000 (13:12 +0100)
Regression from #16452

Closes #16495

tests/runner.pm

index 12391eaf21f5b4522ed88868d25c695e17c38514..68f3969cd088b35bc37549213c33a12952a92aee 100644 (file)
@@ -1034,12 +1034,12 @@ sub singletest_run {
     if ($torture) {
         $cmdres = torture($CMDLINE,
                           $testnum,
-                          "$gdb --directory $LIBDIR " . shell_quote($DBGCURL) . " -x $LOGDIR" . "gdbcmd");
+                          "$gdb --directory $LIBDIR " . shell_quote($DBGCURL) . " -x $LOGDIR/gdbcmd");
     }
     elsif($gdbthis == 1) {
         # gdb
         my $GDBW = ($gdbxwin) ? "-w" : "";
-        runclient("$gdb --directory $LIBDIR " . shell_quote($DBGCURL) . " $GDBW -x $LOGDIR" . "gdbcmd");
+        runclient("$gdb --directory $LIBDIR " . shell_quote($DBGCURL) . " $GDBW -x $LOGDIR/gdbcmd");
         $cmdres=0; # makes it always continue after a debugged run
     }
     elsif($gdbthis == 2) {