diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-08-07 10:12:44 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-08-07 10:12:44 +0000 |
commit | 1c25d394345c1b97c9cfd949fe3d2e3296fd9681 (patch) | |
tree | eae05365e0036fad7135cb0b5681b1c1fe146571 /t/op/read.t | |
parent | 748a4b20dad489edbf351cfb9cf18f6da44f79f5 (diff) | |
download | perl-1c25d394345c1b97c9cfd949fe3d2e3296fd9681.tar.gz |
Use test.pl's tempfile().
p4raw-id: //depot/perl@34180
Diffstat (limited to 't/op/read.t')
-rwxr-xr-x | t/op/read.t | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/t/op/read.t b/t/op/read.t index 8235bc2072..23f1b51a2c 100755 --- a/t/op/read.t +++ b/t/op/read.t @@ -31,9 +31,7 @@ my $has_perlio = !eval { !$Config::Config{useperlio} }; -my $tmpfile = 'Op_read.tmp'; - -END { 1 while unlink $tmpfile } +my $tmpfile = tempfile(); my (@values, @buffers) = ('', ''); @@ -56,7 +54,6 @@ foreach my $value (@values) { skip "Needs :utf8 layer but no perlio", 2 * @offsets * @lengths if $utf8 and !$has_perlio; - 1 while unlink $tmpfile; open FH, ">$tmpfile" or die "Can't open $tmpfile: $!"; binmode FH, "utf8" if $utf8; print FH $value; |