summaryrefslogtreecommitdiff
path: root/ext/Fcntl
diff options
context:
space:
mode:
Diffstat (limited to 'ext/Fcntl')
-rw-r--r--ext/Fcntl/t/syslfs.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/Fcntl/t/syslfs.t b/ext/Fcntl/t/syslfs.t
index 2dcaf43a3d..0843b6019e 100644
--- a/ext/Fcntl/t/syslfs.t
+++ b/ext/Fcntl/t/syslfs.t
@@ -262,10 +262,10 @@ bye(); # does the necessary cleanup
END {
# unlink may fail if applied directly to a large file
- open(BIG, ">big");
- print BIG "x";
+ # be paranoid about leaving 5 gig files lying around
+ open(BIG, ">big"); # truncate
close(BIG);
- unlink "big"; # be paranoid about leaving 5 gig files lying around
+ 1 while unlink "big"; # standard portable idiom
}
# eof