This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix copyright test:
authorSawyer X <xsawyerx@cpan.org>
Sat, 18 Mar 2017 19:32:57 +0000 (20:32 +0100)
committerSawyer X <xsawyerx@cpan.org>
Sat, 18 Mar 2017 19:36:08 +0000 (20:36 +0100)
Other tests are run from t/ and so they add ".." to @INC, but
this test runs from the main dir, so it needs to add ".".

t/porting/copyright.t

index ab6226a..daa95f8 100644 (file)
@@ -18,7 +18,9 @@ working on older releases. It should be run before making a new release.
 
 =cut
 
-
+BEGIN {
+    unshift @INC, '.' if -f 'TestInit.pm';
+}
 use TestInit;
 use strict;
 use Config;