summaryrefslogtreecommitdiff
path: root/t/io/fs.t
diff options
context:
space:
mode:
authorPaul Green <Paul.Green@stratus.com>2002-03-27 18:33:00 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2002-03-28 03:38:34 +0000
commit637201361971914235010f2d901f2582381dfba1 (patch)
tree25494a6dd7f33ce3a71c7fd6a9889fa68d17cefb /t/io/fs.t
parentac09525cca93a03ed3b3deaba82702dec5fec976 (diff)
downloadperl-637201361971914235010f2d901f2582381dfba1.tar.gz
t/io/fs.t - skip all tests that fail on VOS
Message-Id: <200203280433.XAA01502@mailhub1.stratus.com> p4raw-id: //depot/perl@15572
Diffstat (limited to 't/io/fs.t')
-rwxr-xr-xt/io/fs.t24
1 files changed, 13 insertions, 11 deletions
diff --git a/t/io/fs.t b/t/io/fs.t
index 9feed5f1db..9f168cbc84 100755
--- a/t/io/fs.t
+++ b/t/io/fs.t
@@ -261,9 +261,10 @@ close(IOFSCOM);
# as per UNIX FAQ.
SKIP: {
+# Check truncating a closed file.
eval { truncate "Iofs.tmp", 5; };
-
- skip("no truncate - $@", 6) if $@;
+
+ skip("no truncate - $@", 10) if $@;
is(-s "Iofs.tmp", 5, "truncation to five bytes");
@@ -277,8 +278,8 @@ SKIP: {
print FH "x\n" x 200;
close FH;
-
- open(FH, ">>Iofs.tmp") or die "Can't open Iofs.tmp for appending";
+# Check truncating an open file.
+ open(FH, ">>Iofs.tmp") or die "Can't open Iofs.tmp for appending";
binmode FH;
select FH;
@@ -296,11 +297,11 @@ SKIP: {
}
if ($^O eq 'vos') {
- is(-s "Iofs.tmp", 200, "TODO - hit VOS bug posix-973 - fh resize to 200 working (filename check)");
- } else {
- is(-s "Iofs.tmp", 200, "fh resize to 200 working (filename check)");
+ skip ("# TODO - hit VOS bug posix-973 - cannot resize an open file below the current file pos.", 7);
}
+ is(-s "Iofs.tmp", 200, "fh resize to 200 working (filename check)");
+
ok(truncate(FH, 0), "fh resize to zero");
if ($needs_fh_reopen) {
@@ -309,11 +310,12 @@ SKIP: {
ok(-z "Iofs.tmp", "fh resize to zero working (filename check)");
- ok(truncate(FH, 200), "fh resize to 200");
- is(-s FH, 200, "fh resize to 200 working (FH check)");
+ ok(truncate(FH, 200), "fh resize to 200");
+ is(-s FH, 200, "fh resize to 200 working (FH check)");
+
+ ok(truncate(FH, 0), "fh resize to 0");
+ ok(-z FH, "fh resize to 0 working (FH check)");
- ok(truncate(FH, 0), "fh resize to 0");
- ok(-z FH, "fh resize to 0 working (FH check)");
close FH;
}