Skip to content

Commit 3fe9640

Browse files
committed
Special test preambles needed for these.
1 parent bbddd98 commit 3fe9640

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

t/lib/mypragma.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#!./perl
22

3-
use strict;
4-
use warnings;
5-
63
BEGIN {
74
chdir 't' if -d 't';
85
require './test.pl';
9-
@INC = '../lib';
6+
@INC = qw(lib ../lib);
107
plan(tests => 14);
118
}
129

10+
use strict;
11+
use warnings;
12+
1313
use mypragma (); # don't enable this pragma yet
1414

1515
BEGIN {

t/re/pat_advanced.t

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,22 @@
44
# the format supported by re/regexp.t. If you want to add a test
55
# that does fit that format, add it to re/re_tests, not here.
66

7+
BEGIN {
8+
chdir 't' if -d 't';
9+
@INC = qw(../lib .);
10+
require './test.pl';
11+
require './charset_tools.pl';
12+
skip_all_if_miniperl("miniperl can't load Tie::Hash::NamedCapture, need for %+ and %-");
13+
}
14+
715
use strict;
816
use warnings;
917
use 5.010;
1018

11-
1219
sub run_tests;
1320

1421
$| = 1;
1522

16-
17-
BEGIN {
18-
chdir 't' if -d 't';
19-
@INC = '../lib';
20-
require './test.pl';
21-
require './charset_tools.pl';
22-
skip_all_if_miniperl("miniperl can't load Tie::Hash::NamedCapture, need for %+ and %-");
23-
}
24-
2523
run_tests() unless caller;
2624

2725
#
@@ -985,6 +983,9 @@ sub run_tests {
985983
}
986984

987985
{
986+
BEGIN {
987+
unshift @INC, 'lib';
988+
}
988989
use Cname;
989990

990991
ok 'fooB' =~ /\N{foo}[\N{B}\N{b}]/, "Passthrough charname";

0 commit comments

Comments
 (0)