This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Calculate the number of tests in one place, so that the skip()s will
[perl5.git] / ext / B / t / optree_concise.t
index b839fb8..b14af0d 100644 (file)
@@ -20,9 +20,10 @@ BEGIN {
 use OptreeCheck;       # ALSO DOES @ARGV HANDLING !!!!!!
 use Config;
 
-plan tests => 23;
+my $tests = 23;
+plan tests => $tests;
 SKIP: {
-skip "no perlio in this build", 24 unless $Config::Config{useperlio};
+skip "no perlio in this build", $tests unless $Config::Config{useperlio};
 
 $SIG{__WARN__} = sub {
     my $err = shift;