2 # $Id: /mirror/googlecode/test-more/t/threads.t 57943 2008-08-18T02:09:22.275428Z brooklyn.kid51 $
5 if( $ENV{PERL_CORE} ) {
13 unless ( $] >= 5.008001 && $Config{'useithreads'} &&
14 eval { require threads; 'threads'->import; 1; })
16 print "1..0 # Skip: no working threads\n";
24 my $Test = Test::Builder->new;
25 $Test->exported_to('main');
26 $Test->plan(tests => 6);
29 'threads'->create(sub {
30 $Test->ok(1,"Each of these should app the test number")
34 $Test->is_num($Test->current_test(), 5,"Should be five");