summaryrefslogtreecommitdiff
path: root/ext/IPC
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-18 12:25:55 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-18 12:25:55 +0000
commit72802890534be7b33c8ac870fc565ebbe0a9f388 (patch)
treeed9d3f225d8be76d7c31fb05f5ce220c0acaf328 /ext/IPC
parent53a624378bd76eb394925af6efec927264146177 (diff)
downloadperl-72802890534be7b33c8ac870fc565ebbe0a9f388.tar.gz
Guard the SysV IPC tests against being invoked in
SysV-IPC-less places. p4raw-id: //depot/perl@10684
Diffstat (limited to 'ext/IPC')
-rwxr-xr-xext/IPC/SysV/t/msg.t12
-rwxr-xr-xext/IPC/SysV/t/sem.t11
2 files changed, 23 insertions, 0 deletions
diff --git a/ext/IPC/SysV/t/msg.t b/ext/IPC/SysV/t/msg.t
index 2a982f054a..f8c066b384 100755
--- a/ext/IPC/SysV/t/msg.t
+++ b/ext/IPC/SysV/t/msg.t
@@ -1,3 +1,15 @@
+BEGIN {
+ eval { require Config; import Config };
+ if ($@) {
+ 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);
+ }
+}
+
use IPC::SysV qw(IPC_PRIVATE IPC_RMID IPC_NOWAIT IPC_STAT S_IRWXU S_IRWXG S_IRWXO);
use IPC::Msg;
diff --git a/ext/IPC/SysV/t/sem.t b/ext/IPC/SysV/t/sem.t
index 9d6fff64f2..9fa5704c6f 100755
--- a/ext/IPC/SysV/t/sem.t
+++ b/ext/IPC/SysV/t/sem.t
@@ -1,3 +1,14 @@
+BEGIN {
+ eval { require Config; import Config };
+ if ($@) {
+ 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);
+ }
+}
use IPC::SysV qw(
SETALL