Commit | Line | Data |
---|---|---|
d667a7e6 A |
1 | #!./perl |
2 | ||
779248a0 CK |
3 | BEGIN { |
4 | chdir 't' if -d 't'; | |
5 | @INC = '../lib'; | |
6 | require './test.pl'; | |
7 | } | |
8 | ||
9 | plan( tests => 1); | |
10 | ||
d667a7e6 | 11 | require Config; import Config; |
779248a0 | 12 | |
d667a7e6 | 13 | if (($Config{'extensions'} !~ /\bFcntl\b/) ){ |
779248a0 | 14 | BAIL_OUT("Perl configured without Fcntl module"); |
d667a7e6 | 15 | } |
779248a0 CK |
16 | ##Finds IO submodules when using \b |
17 | if (($Config{'extensions'} !~ /\bIO\s/) ){ | |
18 | BAIL_OUT("Perl configured without IO module"); | |
d667a7e6 | 19 | } |
7a06d84a LM |
20 | # hey, DOS users do not need this kind of common sense ;-) |
21 | if ($^O ne 'dos' && ($Config{'extensions'} !~ /\bFile\/Glob\b/) ){ | |
779248a0 | 22 | BAIL_OUT("Perl configured without File::Glob module"); |
d667a7e6 A |
23 | } |
24 | ||
779248a0 | 25 | pass('common sense'); |
d667a7e6 | 26 |