print "1..0 # Skip: PerlIO not used\n";
exit 0;
}
+ require './test.pl';
}
-use Test::More tests => 39;
+plan tests => 39;
use_ok('PerlIO');
#!perl
# ioleaks.t
+BEGIN {
+ chdir 't' if -d 't';
+ @INC = '../lib';
+ require './test.pl';
+}
+
use strict;
use warnings;
-use Test::More 'no_plan';
+plan 'no_plan';
# :unix -> not ok
# :stdio -> not ok
my $base_fd = do{ open my $in, '<', $0 or die $!; fileno $in };
for(1 .. 3){
- local $TODO;
+ local $::TODO;
if ($_ > 1 && $layer =~ /^:(unix|stdio)$/) {
- $TODO = "[perl #56644] PerlIO resource leaks on open() and then :pop in :unix and :stdio"
+ $::TODO = "[perl #56644] PerlIO resource leaks on open() and then :pop in :unix and :stdio"
}
open my $fh, "<$layer", $0 or die $!;
print "1..0 # Skip: no Fcntl (how did you get this far?)\n";
exit 0;
}
+ require './test.pl';
}
use strict;
use warnings;
-use Test::More tests => 6;
+plan tests => 6;
use Fcntl qw(:seek);
#!./perl
BEGIN {
- chdir 't' if -d 't';
- @INC = '../lib';
+ chdir 't' if -d 't';
+ @INC = '../lib';
+ require './test.pl';
}
use strict;
use warnings;
-use Test::More; # test count at bottom of file
use re qw(is_regexp regexp_pattern
regname regnames regnames_count);
{
is(regnames_count(),3);
}
# New tests above this line, don't forget to update the test count below!
-use Test::More tests => 14;
+BEGIN { plan tests => 14 }
# No tests here!
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
+ require './test.pl';
}
use strict;
use warnings;
-use Test::More;
my $count=1;
my @tests;
my $t=($cpv > 256 || $str=~/^do/) ? "unicode" : "latin";
push @tests,
qq[ok($expr,'$chr=~/@fc/ix - $comment ($t string)')];
- $tests[-1]="TODO: { local \$TODO='[13:41] <BinGOs> cue *It is all Greek to me* joke.';\n$tests[-1] }"
+ $tests[-1]="TODO: { local \$::TODO='[13:41] <BinGOs> cue *It is all Greek to me* joke.';\n$tests[-1] }"
if $cp eq '0390' or $cp eq '03B0';
$count++;
}
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
+ require './test.pl';
}
use strict;
use warnings;
-use Test::More 'no_plan'; # otherwise it would 38401 tests, which is, uh, a lot. :-)
+plan "no_plan";
+
my @pats=(
"\\w",
"\\W",
"[:blank:]",
"[:^blank:]" );
if (not $ENV{REAL_POSIX_CC}) {
- $TODO = "Only works under PERL_LEGACY_UNICODE_CHARCLASS_MAPPINGS = 0";
+ $::TODO = "Only works under PERL_LEGACY_UNICODE_CHARCLASS_MAPPINGS = 0";
}
sub rangify {
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
+ require './test.pl';
}
use strict;
use warnings;
-use Test::More tests => 14;
+plan tests => 14;
{
package J;