6 @INC = qw(: ::lib ::macos:lib);
21 sub ok { print "ok $test\n"; $test++ }
25 my $Is_VMS = $^O eq 'VMS';
26 my $Is_MacOS = $^O eq 'MacOS';
28 my $path = join " ", map { qq["-I$_"] } @INC;
29 $path = '"-I../lib" "-Iperl_root:[lib]"' if $Is_VMS; # gets too long otherwise
30 my $redir = $Is_MacOS ? "" : "2>&1";
32 chomp($got = `$^X $path "-MB::Stash" "-Mwarnings" -e1`);
36 print "# got = $got\n";
38 my @got = map { s/^\S+ //; $_ }
40 map { lc($_) . " " . $_ }
43 print "# (after sorting)\n";
44 print "# got = @got\n";
46 @got = grep { ! /^(PerlIO|open)(?:::\w+)?$/ } @got;
48 print "# (after perlio censorings)\n";
49 print "# got = @got\n";
51 @got = grep { ! /^Win32$/ } @got if $^O eq 'MSWin32';
52 @got = grep { ! /^NetWare$/ } @got if $^O eq 'NetWare';
53 @got = grep { ! /^(Cwd|File|File::Copy|OS2)$/ } @got if $^O eq 'os2';
54 @got = grep { ! /^Cwd$/ } @got if $^O eq 'cygwin';
57 @got = grep { ! /^File(?:::Copy)?$/ } @got;
58 @got = grep { ! /^VMS(?:::Filespec)?$/ } @got;
59 @got = grep { ! /^vmsish$/ } @got;
60 # Socket is optional/compiler version dependent
61 @got = grep { ! /^Socket$/ } @got;
64 print "# (after platform censorings)\n";
65 print "# got = @got\n";
69 my $expected = "attributes Carp Carp::Heavy DB Exporter Exporter::Heavy main utf8 warnings";
73 use vars '$OS2::is_aout';
76 if ((($Config{static_ext} eq ' ') || ($Config{static_ext} eq ''))
77 && !($^O eq 'os2' and $OS2::is_aout)
79 print "# [$got]\n# vs.\n# [$expected]\nnot " if $got ne $expected;
82 print "ok $test # skipped: one or more static extensions\n"; $test++;