diff options
author | Sawyer X <xsawyerx@cpan.org> | 2017-03-18 20:32:57 +0100 |
---|---|---|
committer | Sawyer X <xsawyerx@cpan.org> | 2017-03-18 20:36:08 +0100 |
commit | 025582ba60c1f6f9dd83ddb289c4d00a987b0803 (patch) | |
tree | 9bcdb9c2e0c6e26a101f3b6eab81f87be0806662 | |
parent | acc02a5d06e8f2309b057b7d2cc4c42603886a0b (diff) | |
download | perl-025582ba60c1f6f9dd83ddb289c4d00a987b0803.tar.gz |
Fix copyright test:
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 ".".
-rw-r--r-- | t/porting/copyright.t | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/porting/copyright.t b/t/porting/copyright.t index ab6226acb2..daa95f806e 100644 --- a/t/porting/copyright.t +++ b/t/porting/copyright.t @@ -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; |