Last active
February 21, 2016 20:25
-
-
Save exodist/0e6ad75094000c1858a1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use Test2::IPC; | |
use Test::More; | |
for (1 .. 2) { | |
Test2::API::run_subtest(foo => sub { | |
my $pid = fork(); | |
Test2::API::run_subtest(bar => sub { | |
ok(1); | |
}, 1); | |
exit 0 unless $pid; | |
waitpid($pid, 0) if $pid; | |
}, 1); | |
} | |
done_testing; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment