suppress scalar leak messages for known leaks (from
[p5sagit/p5-mst-13.2.git] / t / op / lfs.t
index dcba630..87060e7 100644 (file)
@@ -48,6 +48,13 @@ if ($^O eq 'win32' || $^O eq 'vms') {
     bye();
 }
 
+# Known haves that have problems running this test
+# (for example because they do not support sparse files, like UNICOS)
+if ($^O eq 'unicos') {
+    print "1..0\n# large files known to work but unable to test them here\n";
+    bye();
+}
+
 # Then try to deduce whether we have sparse files.
 
 # Let's not depend on Fcntl or any other extension.
@@ -113,6 +120,12 @@ unless ($print && $close) {
 
 print "# @s\n";
 
+unless ($s[7] == 5_000_000_003) {
+    print "1..0\n# not configured to use large files?\n";
+    explain();
+    bye();
+}
+
 sub fail () {
     print "not ";
     $fail++;
@@ -185,4 +198,8 @@ explain if $fail;
 
 bye(); # does the necessary cleanup
 
+END {
+   unlink "big"; # be paranoid about leaving 5 gig files lying around
+}
+
 # eof