6 @INC = qw(: ::lib ::macos:lib);
22 sub ok { print "ok $test\n"; $test++ }
26 my $Is_VMS = $^O eq 'VMS';
27 my $Is_MacOS = $^O eq 'MacOS';
29 my $path = join " ", map { qq["-I$_"] } @INC;
30 my $redir = $Is_MacOS ? "" : "2>&1";
32 $a = `$^X $path "-MO=Debug" -e 1 $redir`;
33 print "not " unless $a =~
34 /\bLISTOP\b.*\bOP\b.*\bCOP\b.*\bOP\b/s;
38 $a = `$^X $path "-MO=Terse" -e 1 $redir`;
39 print "not " unless $a =~
40 /\bLISTOP\b.*leave.*\n OP\b.*enter.*\n COP\b.*nextstate.*\n OP\b.*null/s;
43 $a = `$^X $path "-MO=Terse" -ane "s/foo/bar/" $redir`;
44 $a =~ s/\(0x[^)]+\)//g;
45 $a =~ s/\[[^\]]+\]//g;
46 $a =~ s/-e syntax OK//;
49 $a =~ s/\b(s|foo|bar|ullsv)\b\s?//g;
52 my $is_thread = $Config{use5005threads} && $Config{use5005threads} eq 'define';
55 leave enter nextstate label leaveloop enterloop null and defined null
56 threadsv readline gv lineseq nextstate aassign null pushmark split pushre
57 threadsv const null pushmark rvav gv nextstate subst const unstack nextstate
61 leave enter nextstate label leaveloop enterloop null and defined null
62 null gvsv readline gv lineseq nextstate aassign null pushmark split pushre
63 null gvsv const null pushmark rvav gv nextstate subst const unstack nextstate
66 $b=~s/\n/ /g;$b=~s/\s+/ /g;
68 print "# [$a]\n# vs\n# [$b]\nnot " if $a ne $b;