summaryrefslogtreecommitdiff
path: root/t/io/perlio_leaks.t
diff options
context:
space:
mode:
Diffstat (limited to 't/io/perlio_leaks.t')
-rw-r--r--t/io/perlio_leaks.t12
1 files changed, 9 insertions, 3 deletions
diff --git a/t/io/perlio_leaks.t b/t/io/perlio_leaks.t
index 6bb6369e55..a7cdf28897 100644
--- a/t/io/perlio_leaks.t
+++ b/t/io/perlio_leaks.t
@@ -1,9 +1,15 @@
#!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
@@ -15,9 +21,9 @@ TODO: {
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 $!;