1 ################################################################################
5 # $Date: 2007/10/14 05:39:15 +0200 $
7 ################################################################################
9 # Version 2.x, Copyright (C) 2007, Marcus Holland-Moritz <mhx@cpan.org>.
10 # Version 1.x, Copyright (C) 1999, Graham Barr <gbarr@pobox.com>.
12 # This program is free software; you can redistribute it and/or
13 # modify it under the same terms as Perl itself.
15 ################################################################################
18 if ($ENV{'PERL_CORE'}) {
20 @INC = '../lib' if -d '../lib' && -d '../ext';
23 require Test::More; import Test::More;
24 require Config; import Config;
26 if ($ENV{'PERL_CORE'} && $Config{'extensions'} !~ m[\bIPC/SysV\b]) {
27 plan(skip_all => 'IPC::SysV was not built');
33 my @modules = qw( IPC::SysV IPC::Msg IPC::Semaphore IPC::SharedMem );
35 eval 'use Pod::Coverage 0.10';
36 plan skip_all => "testing pod coverage requires Pod::Coverage 0.10" if $@;
38 eval 'use Test::Pod::Coverage 1.08';
39 plan skip_all => "testing pod coverage requires Test::Pod::Coverage 1.08" if $@;
41 plan tests => scalar @modules;
43 my $mod = shift @modules;
44 pod_coverage_ok($mod, { trustme => [qw( dl_load_flags )] }, "$mod is covered");
46 for my $mod (@modules) {
47 pod_coverage_ok($mod, "$mod is covered");