From c291be4e4b7fb37889d8d8cd3e85082e09c1a5c0 Mon Sep 17 00:00:00 2001 From: Brad Gilbert Date: Tue, 7 Dec 2010 17:13:05 -0600 Subject: Replaced '1 while unlink' with 'unlink_all' in t/op/stat.t --- t/op/stat.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/op/stat.t b/t/op/stat.t index bc05112f2f..8d1b9f25c9 100644 --- a/t/op/stat.t +++ b/t/op/stat.t @@ -46,7 +46,7 @@ my $tmpfile = tempfile(); my $tmpfile_link = tempfile(); chmod 0666, $tmpfile; -1 while unlink $tmpfile; +unlink_all $tmpfile; open(FOO, ">$tmpfile") || DIE("Can't open temp test file: $!"); close FOO; @@ -551,5 +551,5 @@ SKIP: { END { chmod 0666, $tmpfile; - 1 while unlink $tmpfile; + unlink_all $tmpfile; } -- cgit v1.2.1