mirror of
https://github.com/curl/curl.git
synced 2025-09-20 02:52:48 +03:00
runtests.pl: use $LIBDIR variable instead of hardcoded path
Reviewed-by: Daniel Stenberg Closes #6051
This commit is contained in:
parent
7d8c89d47b
commit
1101fbbf49
|
@ -552,7 +552,7 @@ sub checkcmd {
|
||||||
my ($cmd)=@_;
|
my ($cmd)=@_;
|
||||||
my @paths=(split(":", $ENV{'PATH'}), "/usr/sbin", "/usr/local/sbin",
|
my @paths=(split(":", $ENV{'PATH'}), "/usr/sbin", "/usr/local/sbin",
|
||||||
"/sbin", "/usr/bin", "/usr/local/bin",
|
"/sbin", "/usr/bin", "/usr/local/bin",
|
||||||
"./libtest/.libs", "./libtest");
|
"$LIBDIR/.libs", "$LIBDIR");
|
||||||
for(@paths) {
|
for(@paths) {
|
||||||
if( -x "$_/$cmd" && ! -d "$_/$cmd") {
|
if( -x "$_/$cmd" && ! -d "$_/$cmd") {
|
||||||
# executable bit but not a directory!
|
# executable bit but not a directory!
|
||||||
|
@ -3949,11 +3949,11 @@ sub singletest {
|
||||||
if ($torture) {
|
if ($torture) {
|
||||||
$cmdres = torture($CMDLINE,
|
$cmdres = torture($CMDLINE,
|
||||||
$testnum,
|
$testnum,
|
||||||
"$gdb --directory libtest $DBGCURL -x $LOGDIR/gdbcmd");
|
"$gdb --directory $LIBDIR $DBGCURL -x $LOGDIR/gdbcmd");
|
||||||
}
|
}
|
||||||
elsif($gdbthis) {
|
elsif($gdbthis) {
|
||||||
my $GDBW = ($gdbxwin) ? "-w" : "";
|
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
|
$cmdres=0; # makes it always continue after a debugged run
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user