tests 13 and 14 could output in reverse order. Add a lock to stop
this.
p4raw-id: //depot/perl@24455
sub ok {
my ($ok, $name) = @_;
+ lock $test_id; # make print and increment atomic
+
# You have to do it this way or VMS will get confused.
print $ok ? "ok $test_id - $name\n" : "not ok $test_id - $name\n";
# purpose is to incite a lot of calls to newCONSTSUB. See the p5p
# archives for the thread "maint@20974 or before broke mp2 ithreads test".
use IO::File;
+ # this coredumped between #20930 and #21000
$_->join for map threads->new(sub{ok($_, "stress newCONSTSUB")}), 1..2;
}