X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fop%2Flfs.t;h=f463b1b7b350f591ef90d06ff448be19e22ab3bc;hb=b3a3b3a1da8f5142edf3e194532b08316f895282;hp=8be24f4d82a2ad1e3c65feb3b3860545b8314f0e;hpb=4d0ed6f7ca164e8f0de0f0e2228fdb2e304666cb;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/op/lfs.t b/t/op/lfs.t index 8be24f4..f463b1b 100644 --- a/t/op/lfs.t +++ b/t/op/lfs.t @@ -268,7 +268,11 @@ explain() if $fail; bye(); # does the necessary cleanup END { - unlink "big"; # be paranoid about leaving 5 gig files lying around + # unlink may fail if applied directly to a large file + # be paranoid about leaving 5 gig files lying around + open(BIG, ">big"); # truncate + close(BIG); + 1 while unlink "big"; # standard portable idiom } # eof