summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-11-09 10:44:30 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-11-09 10:44:30 +0000
commit0daede64738e7dd63b974055ab2aa2f7e7419929 (patch)
tree3b0013f77396bfffad5b1d33caff17c25a81e005
parentafa363e8c489ca6a1ae2f2c0b5448fd4ebc3ce4d (diff)
downloadperl-0daede64738e7dd63b974055ab2aa2f7e7419929.tar.gz
More reasons for skipping the IPC::SysV message test.
p4raw-id: //depot/maint-5.6/perl-5.6.2@21690
-rwxr-xr-xext/IPC/SysV/t/msg.t16
1 files changed, 13 insertions, 3 deletions
diff --git a/ext/IPC/SysV/t/msg.t b/ext/IPC/SysV/t/msg.t
index f8c066b384..a626dae9a6 100755
--- a/ext/IPC/SysV/t/msg.t
+++ b/ext/IPC/SysV/t/msg.t
@@ -4,9 +4,19 @@ BEGIN {
print "1..0 # Skip: no Config\n";
exit(0);
}
- if ($Config{extensions} !~ m!\bIPC/SysV\b!) {
- print "1..0 # Skip: no SysV IPC\n";
- exit(0);
+
+ my $reason;
+
+ if ($Config{'extensions'} !~ /\bIPC\/SysV\b/) {
+ $reason = 'IPC::SysV was not built';
+ } elsif ($Config{'d_sem'} ne 'define') {
+ $reason = '$Config{d_sem} undefined';
+ } elsif ($Config{'d_msg'} ne 'define') {
+ $reason = '$Config{d_msg} undefined';
+ }
+ if ($reason) {
+ print "1..0 # Skip: $reason\n";
+ exit 0;
}
}