This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Test croaks inadvertently rmvd by bd2688c4c
[perl5.git] / t / lib / commonsense.t
CommitLineData
d667a7e6
A
1#!./perl
2
779248a0
CK
3BEGIN {
4 chdir 't' if -d 't';
5 @INC = '../lib';
6 require './test.pl';
7}
8
9plan( tests => 1);
10
d667a7e6 11require Config; import Config;
779248a0 12
d667a7e6 13if (($Config{'extensions'} !~ /\bFcntl\b/) ){
779248a0 14 BAIL_OUT("Perl configured without Fcntl module");
d667a7e6 15}
779248a0
CK
16##Finds IO submodules when using \b
17if (($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 ;-)
21if ($^O ne 'dos' && ($Config{'extensions'} !~ /\bFile\/Glob\b/) ){
779248a0 22 BAIL_OUT("Perl configured without File::Glob module");
d667a7e6
A
23}
24
779248a0 25pass('common sense');
d667a7e6 26