Remove obsolete details on how to format a patch. Just point to perlrepository instead.
[p5sagit/p5-mst-13.2.git] / t / uni / overload.t
index d44d171..e20a3ab 100644 (file)
@@ -1,13 +1,12 @@
 #!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;
@@ -151,7 +150,7 @@ SKIP: {
     }
 }
 
-my $tmpfile = 'overload.tmp';
+my $tmpfile = tempfile();
 
 foreach my $operator ('print', 'syswrite', 'syswrite len', 'syswrite off',
                      'syswrite len off') {
@@ -211,7 +210,6 @@ foreach my $operator ('print', 'syswrite', 'syswrite len', 'syswrite off',
        is ($line, "\351", "$operator $layer");
 
        close $fh or die $!;
-       unlink $tmpfile or die $!;
     }
 }
 
@@ -284,7 +282,3 @@ foreach my $value ("\243", UTF8Toggle->new("\243")) {
     my $p = substr $text, 0, 1;
     is ($p, "\x{3075}");
 }
-
-END {
-    1 while -f $tmpfile and unlink $tmpfile || die "unlink '$tmpfile': $!";
-}