#!perl -w
BEGIN {
- if ($ENV{'PERL_CORE'}){
- chdir 't';
- @INC = '../lib';
- }
+ chdir 't';
+ @INC = '../lib';
+ require './test.pl';
}
-use Test::More tests => 215;
+plan(tests => 215);
package UTF8Toggle;
use strict;
}
}
-my $tmpfile = 'overload.tmp';
+my $tmpfile = tempfile();
foreach my $operator ('print', 'syswrite', 'syswrite len', 'syswrite off',
'syswrite len off') {
is ($line, "\351", "$operator $layer");
close $fh or die $!;
- unlink $tmpfile or die $!;
}
}
my $p = substr $text, 0, 1;
is ($p, "\x{3075}");
}
-
-END {
- 1 while -f $tmpfile and unlink $tmpfile || die "unlink '$tmpfile': $!";
-}