]> git.vpit.fr Git - perl/modules/Scope-Upper.git/commitdiff
Also test that the module can be loaded in the main body
authorVincent Pit <vince@profvince.com>
Tue, 24 Mar 2015 00:15:43 +0000 (21:15 -0300)
committerVincent Pit <vince@profvince.com>
Tue, 24 Mar 2015 00:15:43 +0000 (21:15 -0300)
t/09-load-threads.t

index 3bd92f9b667bdfcfdc070669cb44d6f48e321a82..89cf8d3acf2522b3a2c29367b5c0e561d5e0d274 100644 (file)
@@ -57,7 +57,7 @@ BEGIN {
 
 my $could_not_create_thread = 'Could not create thread';
 
 
 my $could_not_create_thread = 'Could not create thread';
 
-use Test::Leaner tests => 1 + (2 + 2 * 2) + 6 + (1 + 2 * 4);
+use Test::Leaner tests => 1 + (2 + 2 * 2) + 6 + (2 * 4) + 2;
 
 sub is_loaded {
  my ($affirmative, $desc) = @_;
 
 sub is_loaded {
  my ($affirmative, $desc) = @_;
@@ -252,3 +252,6 @@ SKIP: {
 }
 
 is_loaded 0, 'main body, after simultaneous threads';
 }
 
 is_loaded 0, 'main body, after simultaneous threads';
+
+do_load;
+is_loaded 1, 'main body, loaded at end';