]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runtests.pl: use $LIBDIR variable instead of hardcoded path
authorMarc Hoersken <info@marc-hoersken.de>
Wed, 7 Oct 2020 19:53:26 +0000 (21:53 +0200)
committerMarc Hoersken <info@marc-hoersken.de>
Thu, 8 Oct 2020 19:36:43 +0000 (21:36 +0200)
Reviewed-by: Daniel Stenberg
Closes #6051

tests/runtests.pl

index a45519c510622bcf07ad6deb4ffdd1dd5cba4b85..6fd5d52f59727c9f3cc894c80f88c752c15d23c5 100755 (executable)
@@ -552,7 +552,7 @@ sub checkcmd {
     my ($cmd)=@_;
     my @paths=(split(":", $ENV{'PATH'}), "/usr/sbin", "/usr/local/sbin",
                "/sbin", "/usr/bin", "/usr/local/bin",
-               "./libtest/.libs", "./libtest");
+               "$LIBDIR/.libs", "$LIBDIR");
     for(@paths) {
         if( -x "$_/$cmd" && ! -d "$_/$cmd") {
             # executable bit but not a directory!
@@ -3949,11 +3949,11 @@ sub singletest {
     if ($torture) {
         $cmdres = torture($CMDLINE,
                           $testnum,
-                          "$gdb --directory libtest $DBGCURL -x $LOGDIR/gdbcmd");
+                          "$gdb --directory $LIBDIR $DBGCURL -x $LOGDIR/gdbcmd");
     }
     elsif($gdbthis) {
         my $GDBW = ($gdbxwin) ? "-w" : "";
-        runclient("$gdb --directory libtest $DBGCURL $GDBW -x $LOGDIR/gdbcmd");
+        runclient("$gdb --directory $LIBDIR $DBGCURL $GDBW -x $LOGDIR/gdbcmd");
         $cmdres=0; # makes it always continue after a debugged run
     }
     else {