Skip to content

Commit 7f0c27c

Browse files
committed
FileHandle.t vs. VMS: empty filenames legal
Trying to ensure you can't create a file with a zero-length name doesn't work out so well when you can can create such a file, so skip that test. It's the equivalent of: $ create sys$disk:[]. ^Z $ dir/since . Directory DSA0:[blead.t] .;1 Total of 1 file.
1 parent c736702 commit 7f0c27c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/FileHandle.t

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ ok($|, "handle auto-flushing current output channel");
9090
}
9191
}
9292

93-
ok(!FileHandle->new('', 'r'), "Can't open empty filename");
93+
SKIP: {
94+
skip "Empty filename perfectly legal on VMS", 1 if $^O eq 'VMS';
95+
ok(!FileHandle->new('', 'r'), "Can't open empty filename");
96+
}
97+
9498

9599
done_testing();

0 commit comments

Comments
 (0)