print "1..0 # Skip -- Perl configured without B module\n";
exit 0;
}
- # require 'test.pl'; # now done by OptreeCheck
+ if (!$Config::Config{useperlio}) {
+ print "1..0 # Skip -- need perlio to walk the optree\n";
+ exit 0;
+ }
}
use OptreeCheck;
=cut
-my $tests = 5 + 15 + 16 * $gOpts{selftest}; # pass()s + $#tests
-plan tests => $tests;
-
-SKIP: {
- skip "no perlio in this build", $tests
- unless $Config::Config{useperlio};
-
+plan tests => 5 + 15 + 16 * $gOpts{selftest}; # pass()s + $#tests
pass("REGEX TEST HARNESS SELFTEST");
# 6 <2> sassign sKS/2
# 7 <1> leavesub[1 ref] K/REFC,1
EONT_EONT
-
-} # skip
-
-__END__
-
print "1..0 # Skip -- Perl configured without B module\n";
exit 0;
}
- # require 'test.pl'; # now done by OptreeCheck
+ if (!$Config::Config{useperlio}) {
+ print "1..0 # Skip -- need perlio to walk the optree\n";
+ exit 0;
+ }
}
# import checkOptree(), and %gOpts (containing test state)
use OptreeCheck; # ALSO DOES @ARGV HANDLING !!!!!!
use Config;
-my $tests = 23;
-plan tests => $tests;
-SKIP: {
-skip "no perlio in this build", $tests unless $Config::Config{useperlio};
+plan tests => 23;
$SIG{__WARN__} = sub {
my $err = shift;
7 <1> leavesub[1 ref] K/REFC,1 ->(end)
1 <;> nextstate(main 76 optree_concise.t:407) v ->2
EONT_EONT
-
-} #skip
-
print "1..0 # Skip -- Perl configured without B module\n";
exit 0;
}
- # require 'test.pl'; # now done by OptreeCheck
+ if (!$Config::Config{useperlio}) {
+ print "1..0 # Skip -- need perlio to walk the optree\n";
+ exit 0;
+ }
}
use OptreeCheck; # ALSO DOES @ARGV HANDLING !!!!!!
use Config;
-my $tests = 30;
-plan tests => $tests;
-SKIP: {
-skip "no perlio in this build", $tests unless $Config::Config{useperlio};
+plan tests => 30;
#################################
strip_open_hints => 1,
expect => $expect, expect_nt => $expect_nt);
-} #skip
-
__END__
=head NB
print "1..0 # Skip -- Perl configured without B module\n";
exit 0;
}
- # require 'test.pl'; # now done by OptreeCheck
+ if (!$Config::Config{useperlio}) {
+ print "1..0 # Skip -- need perlio to walk the optree\n";
+ exit 0;
+ }
}
use OptreeCheck;
use Config;
plan tests => 20;
-SKIP: {
- skip "no perlio in this build", 20 unless $Config::Config{useperlio};
pass("GENERAL OPTREE EXAMPLES");
# 6 <@> leave[1 ref] vKP/REFC
EONT_EONT
-} # skip
-
__END__
#######################################################################
print "1..0 # Skip -- Perl configured without B module\n";
exit 0;
}
- # require 'test.pl'; # now done by OptreeCheck
+ if (!$Config::Config{useperlio}) {
+ print "1..0 # Skip -- need perlio to walk the optree\n";
+ exit 0;
+ }
}
use OptreeCheck;
use Config;
plan tests => 11;
-SKIP: {
-skip "no perlio in this build", 11 unless $Config::Config{useperlio};
-
pass("SORT OPTIMIZATION");
checkOptree ( name => 'sub {sort @a}',
# 9 <$> const(IV 1) s
# a <1> leavesub[1 ref] K/REFC,1
EONT_EONT
-
-} #skip
-
-__END__
-
print "1..0 # Skip -- Perl configured without B module\n";
exit 0;
}
- # require 'test.pl'; # now done by OptreeCheck
+ if (!$Config::Config{useperlio}) {
+ print "1..0 # Skip -- need perlio to walk the optree\n";
+ exit 0;
+ }
}
use OptreeCheck;
use Config;
plan tests => 22;
-SKIP: {
-skip "no perlio in this build", 22 unless $Config::Config{useperlio};
pass("OPTIMIZER TESTS - VAR INITIALIZATION");
# 7 <2> aassign[t3] vKS
# 8 <@> leave[1 ref] vKP/REFC
EONT_EONT
-
-} #skip
-
-__END__
-