You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-cvs@httpd.apache.org by st...@apache.org on 2002/07/01 09:57:15 UTC
cvs commit: httpd-test/perl-framework/Apache-Test/lib/Apache TestConfigPerl.pm
stas 2002/07/01 00:57:15
Modified: perl-framework/Apache-Test/lib/Apache TestConfigPerl.pm
Log:
add $top/Apache-Test/lib to @INC only if exists, no need to pollute @INC
otherwise
Revision Changes Path
1.53 +4 -2 httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfigPerl.pm
Index: TestConfigPerl.pm
===================================================================
RCS file: /home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfigPerl.pm,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- TestConfigPerl.pm 18 May 2002 02:01:30 -0000 1.52
+++ TestConfigPerl.pm 1 Jul 2002 07:57:15 -0000 1.53
@@ -66,8 +66,10 @@
last;
}
- # enable live testing of the Apache-Test modules
- unshift @$inc, catfile($top, 'Apache-Test', 'lib');
+ # enable live testing of the Apache-Test dev modules if they are
+ # located at the project's root dir
+ my $apache_test_dev_dir = catfile($top, 'Apache-Test', 'lib');
+ unshift @$inc, $apache_test_dev_dir if -d $apache_test_dev_dir;
}
sub write_pm_test {