Skip to content

Commit fcfa75d

Browse files
committed
block Test2 in tests where Test::More isn't allowed
Tests in t/ are generally not allowed to use Test::More or related modules. Instead, they are meant to use t/test.pl. There is a porting test to make sure they are not used. Test2 should be blocked in the same places that Test::More is.
1 parent f9ce8d5 commit fcfa75d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/porting/test_bootstrap.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ while (my $file = <$fh>) {
3939
# but exclude this file from that test.
4040
unlike(
4141
$contents,
42-
qr/use\s+Test::(?:Simple|More)/,
42+
qr/use\s+(?:Test::(?:Simple|More|Builder)|Test2)/,
4343
"$file doesn't use Test::Simple or Test::More"
4444
) unless ($file =~ m|porting/test_bootstrap\.t|);
4545
next unless $file =~ m!^base/! or $file =~ m!^comp!;

0 commit comments

Comments
 (0)