summaryrefslogtreecommitdiff
path: root/t/op/stat.t
diff options
context:
space:
mode:
authorJohn E. Malmberg <wb8tyw@qsl.net>2005-08-10 19:26:03 -0400
committerH.Merijn Brand <h.m.brand@xs4all.nl>2005-08-11 07:35:27 +0000
commit16ed468695c21630f18883bfbedc3d5170ddc8b2 (patch)
treedc0fb151b14d61b21fd69a495a06aee634f4f01a /t/op/stat.t
parent6cd63c21c135f707c2046a8512b70b74c3e1000c (diff)
downloadperl-16ed468695c21630f18883bfbedc3d5170ddc8b2.tar.gz
[patch] blead@25282 - VMS specific fixes. [2nd try]
From: "John E. Malmberg" <wb8tyw@qsl.net> Message-ID: <42FAC54B.2050207@qsl.net> p4raw-id: //depot/perl@25284
Diffstat (limited to 't/op/stat.t')
-rwxr-xr-xt/op/stat.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/op/stat.t b/t/op/stat.t
index 924c5f40af..6eb5c9a0c4 100755
--- a/t/op/stat.t
+++ b/t/op/stat.t
@@ -49,6 +49,8 @@ close FOO;
open(FOO, ">$tmpfile") || DIE("Can't open temp test file: $!");
my($nlink, $mtime, $ctime) = (stat(FOO))[$NLINK, $MTIME, $CTIME];
+
+#VMS Fix-me: nlink should work on VMS if applicable link support configured.
SKIP: {
skip "No link count", 1 if $Is_VMS;
@@ -212,6 +214,16 @@ SKIP: {
skip "Skipping: unexpected ls output in MP-RAS", 6
if $Is_MPRAS;
+ # VMS problem: If GNV or other UNIX like tool is installed, then
+ # sometimes Perl will find /bin/ls, and will try to run it.
+ # But since Perl on VMS does not know to run it under Bash, it will
+ # try to run the DCL verb LS. And if the VMS product Language
+ # Sensitive Editor is installed, or some other LS verb, that will
+ # be run instead. So do not do this until we can teach Perl
+ # when to use BASH on VMS.
+ skip "ls command not available to Perl in OpenVMS right now.", 6
+ if $Is_VMS;
+
my $LS = $Config{d_readlink} ? "ls -lL" : "ls -l";
my $CMD = "$LS /dev 2>/dev/null";
my $DEV = qx($CMD);