This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
t/uni/caller.t should declare its plan at run time
authorNicolas R <atoomic@cpan.org>
Thu, 20 Sep 2018 21:06:52 +0000 (15:06 -0600)
committerNicolas R <atoomic@cpan.org>
Fri, 21 Sep 2018 15:18:48 +0000 (10:18 -0500)
Unit test should declare their test plan after
compilation when possible.

t/uni/caller.t

index c48018c..e05f737 100644 (file)
@@ -5,12 +5,13 @@ BEGIN {
     chdir 't' if -d 't';
     require './test.pl';
     set_up_inc('../lib');
-    plan( tests => 18 );
 }
 
 use utf8;
 use open qw( :utf8 :std );
 
+plan( tests => 18 );
+
 package main;
 
 {