]> git.vpit.fr Git - perl/modules/Test-Leaner.git/blobdiff - lib/Test/Leaner.pm
Lock before setting $no_diag
[perl/modules/Test-Leaner.git] / 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;
    }