summaryrefslogtreecommitdiff
path: root/ext/IPC/SysV/t/sem.t
diff options
context:
space:
mode:
Diffstat (limited to 'ext/IPC/SysV/t/sem.t')
-rwxr-xr-xext/IPC/SysV/t/sem.t11
1 files changed, 11 insertions, 0 deletions
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