summaryrefslogtreecommitdiff
path: root/cpan/Test-Simple/t/Behavior/fork_new_end.t
blob: 7e7c2d7c257212104f0b609e0b9081ee86f0b9b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
use strict;
use warnings;

BEGIN {
    if( $ENV{PERL_CORE} ) {
        chdir 't';
        @INC = '../lib';
    }
}

use Test::CanThread qw/AUTHOR_TESTING/;
use Test::More tests => 4;

ok(1, "outside before");

my $run = sub {
    ok(1, 'in thread1');
    ok(1, 'in thread2');
};


my $t = threads->create($run);

ok(1, "outside after");

$t->join;

END {
    print "XXX: " . Test::Builder->new->is_passing . "\n";
}