BEGIN {
if (THREADSAFE) {
- threads::shared::share($_) for $plan, $test, $failed, $no_diag;
+ threads::shared::share($_) for $plan, $test, $failed, $no_diag, $done_testing;
}
lock $plan if THREADSAFE;
push @imports, @{ $_[$i+1] };
$splice = 2;
} elsif ($item eq 'no_diag') {
+ lock $plan if THREADSAFE;
$no_diag = 1;
$splice = 1;
}