]> git.vpit.fr Git - perl/modules/Test-Leaner.git/commitdiff
Lock before setting $no_diag
authorVincent Pit <vince@profvince.com>
Sat, 25 Dec 2010 11:02:14 +0000 (12:02 +0100)
committerVincent Pit <vince@profvince.com>
Sat, 25 Dec 2010 11:02:14 +0000 (12:02 +0100)
lib/Test/Leaner.pm

index 336bf31c3d56ca17a9712de6074b411adfc490a1..9e39fe570e61d745eb657348b79751318f86bdc7 100644 (file)
@@ -143,6 +143,7 @@ sub import {
     push @imports, @{ $_[$i+1] };
     $splice  = 2;
    } elsif ($item eq 'no_diag') {
+    lock $plan if THREADSAFE;
     $no_diag = 1;
     $splice  = 1;
    }