summaryrefslogtreecommitdiff
path: root/t/io/fs.t
diff options
context:
space:
mode:
authorPrymmer/Kahn <pvhp@best.com>2001-07-21 05:08:29 -0700
committerJarkko Hietaniemi <jhi@iki.fi>2001-07-22 14:36:43 +0000
commit7054c437fe115078675d7707454dda4600a840da (patch)
tree406fb5e22956426a9b8ba0dea795ff316983964f /t/io/fs.t
parent10de532f2de6c9fa844347ca793cbb021e0492b7 (diff)
downloadperl-7054c437fe115078675d7707454dda4600a840da.tar.gz
Win32 update for t/io/fs.t (may effect NetWare)
Message-ID: <Pine.BSF.4.21.0107211156160.17271-100000@shell8.ba.best.com> p4raw-id: //depot/perl@11436
Diffstat (limited to 't/io/fs.t')
-rwxr-xr-xt/io/fs.t11
1 files changed, 9 insertions, 2 deletions
diff --git a/t/io/fs.t b/t/io/fs.t
index 3ecfe7fc03..1c4715426e 100755
--- a/t/io/fs.t
+++ b/t/io/fs.t
@@ -136,7 +136,9 @@ unlink 'c';
chdir $wd || die "Can't cd back to $wd";
unlink 'c';
-if ((($^O eq 'MSWin32') || ($^O eq 'NetWare')) and `ls -l perl 2>/dev/null` =~ /^l.*->/) {
+# Yet another way to look for links (perhaps those that cannot be created by perl?).
+# Hopefully there is an ls utility in your %PATH%. N.B. that $^O is 'cygwin' on Cygwin.
+if ((($^O eq 'MSWin32') || ($^O eq 'NetWare')) and `ls -l perl 2>nul` =~ /^l.*->/) {
# we have symbolic links
system("cp TEST TEST$$");
# we have to copy because e.g. GNU grep gets huffy if we have
@@ -149,7 +151,12 @@ if ((($^O eq 'MSWin32') || ($^O eq 'NetWare')) and `ls -l perl 2>/dev/null` =~ /
unlink("TEST$$");
}
else {
- print "ok 21\nok 22\n";
+ if ( ($^O eq 'MSWin32') || ($^O eq 'NetWare') ) {
+ print "ok 21 # skipped: no link\nok 22 # skipped: no link\n";
+ }
+ else {
+ print "ok 21 # skipped: $^O is neither 'MSWin32' nor 'NetWare'\nok 22 # skipped: $^O is neither 'MSWin32' nor 'NetWare'\n";
+ }
}
# truncate (may not be implemented everywhere)