summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-03-16 18:07:30 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-03-16 18:07:30 +0000
commit085a16fc645d01e9c317a227fb12575af270d8fb (patch)
tree83591b841f3a9bf5858b52ca7fbb2e1fdc45e9bb /t
parent11412ee612ee855f6157e78034024e8f5e3ba052 (diff)
downloadperl-085a16fc645d01e9c317a227fb12575af270d8fb.tar.gz
IRIX ls -l marks sockets with 'S'.
p4raw-id: //depot/perl@18997
Diffstat (limited to 't')
-rwxr-xr-xt/op/stat.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/op/stat.t b/t/op/stat.t
index df478b09de..89046c364b 100755
--- a/t/op/stat.t
+++ b/t/op/stat.t
@@ -242,6 +242,11 @@ SKIP: {
$DEV =~ s{^.+?\s\..+?$}{}m;
@DEV = grep { ! m{^\..+$} } @DEV;
+ # Irix ls -l marks sockets with 'S' while 's' is a 'XENIX semaphore'.
+ if ($^O eq 'irix') {
+ $DEV =~ s{^S(.+?)}{s$1}mg;
+ }
+
my $try = sub {
my @c1 = eval qq[\$DEV =~ /^$_[0].*/mg];
my @c2 = eval qq[grep { $_[1] "/dev/\$_" } \@DEV];