runtests and friends: Do not add undefined values to @INC
On FreeBSD this fixes the warning: Use of uninitialized value $p in string eq at /usr/local/lib/perl5/5.14.2/BSDPAN/BSDPAN.pm line 36.
This commit is contained in:
committed by
Daniel Stenberg
parent
3c6ea7ca82
commit
ca5f4e2135
@@ -39,7 +39,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
BEGIN {
|
BEGIN {
|
||||||
@INC=(@INC, $ENV{'srcdir'}, '.');
|
push(@INC, $ENV{'srcdir'}) if(defined $ENV{'srcdir'});
|
||||||
|
push(@INC, ".");
|
||||||
# sub second timestamping needs Time::HiRes
|
# sub second timestamping needs Time::HiRes
|
||||||
eval {
|
eval {
|
||||||
no warnings "all";
|
no warnings "all";
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
#***************************************************************************
|
#***************************************************************************
|
||||||
|
|
||||||
BEGIN {
|
BEGIN {
|
||||||
@INC=(@INC, $ENV{'srcdir'}, '.');
|
push(@INC, $ENV{'srcdir'}) if(defined $ENV{'srcdir'});
|
||||||
|
push(@INC, ".");
|
||||||
}
|
}
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|||||||
@@ -23,7 +23,8 @@
|
|||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
@INC=(@INC, $ENV{'srcdir'}, ".");
|
push(@INC, $ENV{'srcdir'}) if(defined $ENV{'srcdir'});
|
||||||
|
push(@INC, ".");
|
||||||
|
|
||||||
require "getpart.pm"; # array functions
|
require "getpart.pm"; # array functions
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
#***************************************************************************
|
#***************************************************************************
|
||||||
|
|
||||||
BEGIN {
|
BEGIN {
|
||||||
@INC=(@INC, $ENV{'srcdir'}, '.');
|
push(@INC, $ENV{'srcdir'}) if(defined $ENV{'srcdir'});
|
||||||
|
push(@INC, ".");
|
||||||
}
|
}
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|||||||
@@ -56,7 +56,8 @@
|
|||||||
# These should be the only variables that might be needed to get edited:
|
# These should be the only variables that might be needed to get edited:
|
||||||
|
|
||||||
BEGIN {
|
BEGIN {
|
||||||
@INC=(@INC, $ENV{'srcdir'}, ".");
|
push(@INC, $ENV{'srcdir'}) if(defined $ENV{'srcdir'});
|
||||||
|
push(@INC, ".");
|
||||||
# run time statistics needs Time::HiRes
|
# run time statistics needs Time::HiRes
|
||||||
eval {
|
eval {
|
||||||
no warnings "all";
|
no warnings "all";
|
||||||
|
|||||||
@@ -26,7 +26,8 @@
|
|||||||
# non-secure test harness servers.
|
# non-secure test harness servers.
|
||||||
|
|
||||||
BEGIN {
|
BEGIN {
|
||||||
@INC=(@INC, $ENV{'srcdir'}, '.');
|
push(@INC, $ENV{'srcdir'}) if(defined $ENV{'srcdir'});
|
||||||
|
push(@INC, ".");
|
||||||
}
|
}
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
#***************************************************************************
|
#***************************************************************************
|
||||||
|
|
||||||
BEGIN {
|
BEGIN {
|
||||||
@INC=(@INC, $ENV{'srcdir'}, '.');
|
push(@INC, $ENV{'srcdir'}) if(defined $ENV{'srcdir'});
|
||||||
|
push(@INC, ".");
|
||||||
}
|
}
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
|
|||||||
Reference in New Issue
Block a user