Do not tickle defective 5.10.0 threads in tests
[p5sagit/Class-Accessor-Grouped.git] / t / accessors_xs_cachedwarn.t
index eecc8df..c8e659b 100644 (file)
@@ -1,6 +1,6 @@
 my $has_threads;
 BEGIN { eval '
-  use 5.008004; # older perls get confused by $SIG fiddling
+  use 5.008005; # older perls get confused by $SIG fiddling under CXSA
   use threads;
   use threads::shared;
   $has_threads = 1;
@@ -45,9 +45,15 @@ share(@w) if $has_threads;
 
     is ($obj->singlefield, 2, 'Normal get');
     is ($obj2->singlefield, undef, 'Normal get on unrelated object');
+
+    42;
   };
 
-  $has_threads ? threads->create( $todo )->join : $todo->();
+  is (
+    ($has_threads ? threads->create( $todo )->join : $todo->()),
+    42,
+    "Correct result after do-er",
+  )
 }
 
 is (@w, 3, '3 warnings total');