diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-10-06 14:43:55 +0200 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-10-06 14:43:55 +0200 |
commit | 6ddfe9e80dcd0e491ed20e28f11a5431e78989aa (patch) | |
tree | 77c1933bc95f09bcb5512b9ecaa0af8f69637dc7 /t/uni | |
parent | e4206093c9a6ef09175024ffdd3930ca2c116c26 (diff) | |
download | perl-6ddfe9e80dcd0e491ed20e28f11a5431e78989aa.tar.gz |
Replace a hardcoded temporary file name with test.pl's tempfile().
Diffstat (limited to 't/uni')
-rw-r--r-- | t/uni/overload.t | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/t/uni/overload.t b/t/uni/overload.t index d7c06f5201..e20a3abfff 100644 --- a/t/uni/overload.t +++ b/t/uni/overload.t @@ -150,7 +150,7 @@ SKIP: { } } -my $tmpfile = 'overload.tmp'; +my $tmpfile = tempfile(); foreach my $operator ('print', 'syswrite', 'syswrite len', 'syswrite off', 'syswrite len off') { @@ -210,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 $!; } } @@ -283,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': $!"; -} |