diff options
author | Brad Gilbert <b2gills@gmail.com> | 2010-12-07 17:10:39 -0600 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2010-12-08 11:16:34 -0800 |
commit | 03cfa418dd8a7f0efec23f3e69cd965b9a09b610 (patch) | |
tree | 6d3b8ab37accf941270782ce02b901722598ccec /t/io | |
parent | 7eedb18966fc19abaf70987a09a5ed8320a7d52c (diff) | |
download | perl-03cfa418dd8a7f0efec23f3e69cd965b9a09b610.tar.gz |
Replaced '1 while unlink' with 'unlink_all' in t/io/perlio.t
Diffstat (limited to 't/io')
-rw-r--r-- | t/io/perlio.t | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/t/io/perlio.t b/t/io/perlio.t index b9f00a7f70..8b1cff3995 100644 --- a/t/io/perlio.t +++ b/t/io/perlio.t @@ -105,14 +105,14 @@ ok(close($utffh)); my $filename = find_filename($x, $perlio_tmp_file_glob); is($filename, undef, "No tmp files leaked"); - unlink $filename if defined $filename; + unlink_all $filename if defined $filename; mkdir $ENV{TMPDIR}; ok(open(my $x,"+<",undef), 'TMPDIR honored by magic temp file via 3 arg open with undef - works if TMPDIR points to an existent dir'); $filename = find_filename($x, $perlio_tmp_file_glob); is($filename, undef, "No tmp files leaked"); - unlink $filename if defined $filename; + unlink_all $filename if defined $filename; } } @@ -198,9 +198,9 @@ close ($no_perlio); END { - 1 while unlink $txt; - 1 while unlink $bin; - 1 while unlink $utf; + unlink_all $txt; + unlink_all $bin; + unlink_all $utf; rmdir $nonexistent; } |