aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
authorFabian Keil <fk@fabiankeil.de>2012-11-14 11:40:31 +0100
committerDaniel Stenberg <daniel@haxx.se>2012-12-06 23:04:33 +0100
commitca5f4e21357a0b4a55e7a2a0f71e632442723989 (patch)
tree968ad0e6e642916d4b529851d8e2ae0eae1e081c /tests/runtests.pl
parent3c6ea7ca825f2f17baf5b384d06b824b5a45987c (diff)
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.
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-xtests/runtests.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 27fff4a95..0b2559ecd 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -56,7 +56,8 @@
# These should be the only variables that might be needed to get edited:
BEGIN {
- @INC=(@INC, $ENV{'srcdir'}, ".");
+ push(@INC, $ENV{'srcdir'}) if(defined $ENV{'srcdir'});
+ push(@INC, ".");
# run time statistics needs Time::HiRes
eval {
no warnings "all";