Skip to content

Commit bbddd98

Browse files
committed
pod_rules.t needs special preamble.
1 parent 02379d9 commit bbddd98

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

t/porting/pod_rules.t

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,15 @@
2020
# file will probably pass as well.
2121

2222
BEGIN {
23-
chdir 't' if -d '../t';
24-
unshift @INC, '../lib';
23+
# We need to be at the top level dir.
24+
if (-f 'test.pl' && -f 'harness') {
25+
chdir '..';
26+
}
27+
@INC = qw(lib .); # Special @INC.
28+
require 't/test.pl';
2529
}
2630

2731
use strict;
28-
require 't/test.pl';
2932

3033
use Config;
3134
if ( $Config{usecrosscompile} ) {

0 commit comments

Comments
 (0)