8 my $b = Test::Builder->new;
11 my $Can_Fork = $Config{d_fork} ||
12 (($^O eq 'MSWin32' || $^O eq 'NetWare') and
13 $Config{useithreads} and
14 $Config{ccflags} =~ /-DPERL_IMPLICIT_SYS/
18 $b->plan('skip_all' => "This system cannot fork");
21 $b->plan('tests' => 2);
24 my $pipe = IO::Pipe->new;
25 if ( my $pid = fork ) {
27 $b->ok((<$pipe> =~ /FROM CHILD: ok 1/), "ok 1 from child");
28 $b->ok((<$pipe> =~ /FROM CHILD: 1\.\.1/), "1..1 from child");
33 my $pipe_fd = $pipe->fileno;
35 open(STDOUT, ">&$pipe_fd");
36 my $b = Test::Builder->new;