From: Marc Hoersken Date: Wed, 7 Oct 2020 19:53:26 +0000 (+0200) Subject: runtests.pl: use $LIBDIR variable instead of hardcoded path X-Git-Tag: curl-7_73_0~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1101fbbf49761c36fcb8261cda910ab26173d2cd;p=thirdparty%2Fcurl.git runtests.pl: use $LIBDIR variable instead of hardcoded path Reviewed-by: Daniel Stenberg Closes #6051 --- diff --git a/tests/runtests.pl b/tests/runtests.pl index a45519c510..6fd5d52f59 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -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 {