use strict;
use warnings;
+BEGIN { delete $ENV{PERL_TEST_LEANER_USES_TEST_MORE} }
+
sub skipall {
my ($msg) = @_;
require Test::Leaner;
skipall 'This perl wasn\'t built to support threads'
unless $Config{useithreads};
skipall 'perl 5.13.4 required to test thread safety'
- unless $force or $] >= 5.013004;
+ unless $force or "$]" >= 5.013004;
skipall "threads $t_v required to test thread safety"
unless eval "use threads $t_v; 1";
}
diag "spawned thread $tid";
tick;
for (1 .. 10) {
- pass "test $_ in thread $tid";
+ cmp_ok 1, '==', '1.0', "test $_ in thread $tid";
tick;
}
}