This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: maint@20974 or before broke mp2 ithreads test
authorMarcus Holland-Moritz <mhx-perl@gmx.net>
Wed, 3 Sep 2003 06:07:54 +0000 (08:07 +0200)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 3 Sep 2003 04:48:40 +0000 (04:48 +0000)
From: "Marcus Holland-Moritz" <mhx-perl@gmx.net>
Message-ID: <044101c371d0$f39b3fc0$0c2f1fac@R2D2>

p4raw-id: //depot/perl@21009

ext/threads/t/join.t

index 7f8f1c8..7e0bde0 100644 (file)
@@ -139,3 +139,12 @@ if ($^O eq 'linux') {
     $ok++ if($@ =~/Thread already joined/);
     ok($ok, "Double join works");
 }
+
+{
+    # The "use IO" is not actually used for anything; its only 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;
+    $_->join for map threads->new(sub{ok($_, "stress newCONSTSUB")}), 1..2;
+}
+