4 if (($Config::Config{'extensions'} !~ /\bB\b/) ){
5 print "1..0 # Skip -- Perl configured without B module\n";
8 if ($Config::Config{'extensions'} !~ /\bFcntl\b/) {
9 print "1..0 # Skip -- Perl configured without Fcntl\n";
12 # S_IFMT is a real subroutine, and acts as control
13 # SEEK_SET is a proxy constant subroutine.
14 @symbols = qw(S_IFMT SEEK_SET);
21 use B qw(svref_2object GVf_IMPORTED_CV);
24 # GVf_IMPORTED_CV should not be set on the original, but should be set on the
27 foreach my $symbol (@symbols) {
31 $ps = svref_2object(\*{"Fcntl::$symbol"});
32 $ms = svref_2object(\*{"::$symbol"});
35 is($ps->GvFLAGS() & GVf_IMPORTED_CV, 0,
36 "GVf_IMPORTED_CV not set on original");
38 is($ms->GvFLAGS() & GVf_IMPORTED_CV, GVf_IMPORTED_CV,
39 "GVf_IMPORTED_CV set on imported GV");