]> git.vpit.fr Git - perl/modules/Test-Leaner.git/blobdiff - t/80-threads.t
Replace $] by "$]"
[perl/modules/Test-Leaner.git] / t / 80-threads.t
index 3b0a5959b5e06229ae5b667056e4f6b89112daf0..639c118972bee1771d47dc8aea8604c383b9ea63 100644 (file)
@@ -3,6 +3,8 @@
 use strict;
 use warnings;
 
+BEGIN { delete $ENV{PERL_TEST_LEANER_USES_TEST_MORE} }
+
 sub skipall {
  my ($msg) = @_;
  require Test::Leaner;
@@ -17,7 +19,7 @@ BEGIN {
  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";
 }
@@ -39,7 +41,7 @@ sub worker {
  diag "spawned thread $tid";
  tick;
  for (1 .. 10) {
-  pass "test $_ in thread $tid";
+  cmp_ok 1, '==', '1.0', "test $_ in thread $tid";
   tick;
  }
 }