This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Revert "Update Test-Simple to CPAN version 1.001009"
[perl5.git] / cpan / Test-Simple / t / Legacy / static / gitweb.css
diff --git a/cpan/Test-Simple/t/is_deeply_with_threads.t b/cpan/Test-Simple/t/is_deeply_with_threads.t
deleted file mode 100644 (file)
index 9908ef6..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/usr/bin/perl -w
-
-# Test to see if is_deeply() plays well with threads.
-
-BEGIN {
-    if( $ENV{PERL_CORE} ) {
-        chdir 't';
-        @INC = ('../lib', 'lib');
-    }
-    else {
-        unshift @INC, 't/lib';
-    }
-}
-
-use strict;
-use Config;
-
-BEGIN {
-    unless ( $] >= 5.008001 && $Config{'useithreads'} && 
-             eval { require threads; 'threads'->import; 1; }) 
-    {
-        print "1..0 # Skip no working threads\n";
-        exit 0;
-    }
-    
-    unless ( $ENV{AUTHOR_TESTING} ) {
-        print "1..0 # Skip many perls have broken threads.  Enable with AUTHOR_TESTING.\n";
-        exit 0;
-    }
-}
-use Test::More;
-
-my $Num_Threads = 5;
-
-plan tests => $Num_Threads * 100 + 6;
-
-
-sub do_one_thread {
-    my $kid = shift;
-    my @list = ( 'x', 'yy', 'zzz', 'a', 'bb', 'ccc', 'aaaaa', 'z',
-                 'hello', 's', 'thisisalongname', '1', '2', '3',
-                 'abc', 'xyz', '1234567890', 'm', 'n', 'p' );
-    my @list2 = @list;
-    print "# kid $kid before is_deeply\n";
-
-    for my $j (1..100) {
-        is_deeply(\@list, \@list2);
-    }
-    print "# kid $kid exit\n";
-    return 42;
-}
-
-my @kids = ();
-for my $i (1..$Num_Threads) {
-    my $t = threads->new(\&do_one_thread, $i);
-    print "# parent $$: continue\n";
-    push(@kids, $t);
-}
-for my $t (@kids) {
-    print "# parent $$: waiting for join\n";
-    my $rc = $t->join();
-    cmp_ok( $rc, '==', 42, "threads exit status is $rc" );
-}
-
-pass("End of test");