This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make $class->method work when $class is tied
[perl5.git] / t / lib / commonsense.t
CommitLineData
d667a7e6
A
1#!./perl
2
3chdir 't' if -d 't';
4@INC = '../lib';
5require Config; import Config;
d667a7e6
A
6if (($Config{'extensions'} !~ /\bFcntl\b/) ){
7 print "Bail out! Perl configured without Fcntl module\n";
8 exit 0;
9}
10if (($Config{'extensions'} !~ /\bIO\b/) ){
11 print "Bail out! Perl configured without IO module\n";
12 exit 0;
13}
7a06d84a
LM
14# hey, DOS users do not need this kind of common sense ;-)
15if ($^O ne 'dos' && ($Config{'extensions'} !~ /\bFile\/Glob\b/) ){
d667a7e6
A
16 print "Bail out! Perl configured without File::Glob module\n";
17 exit 0;
18}
19
20print "1..1\nok 1\n";
21