8 my $b = Test::Builder->new;
11 my $Can_Fork = $Config{d_fork}
12 || (($^O eq 'MSWin32' || $^O eq 'NetWare')
13 and $Config{useithreads}
14 and $Config{ccflags} =~ /-DPERL_IMPLICIT_SYS/);
17 $b->plan('skip_all' => "This system cannot fork");
20 $b->plan('tests' => 2);
23 my $pipe = IO::Pipe->new;
27 $b->like($output[0], qr/ok 1/, "ok 1 from child");
28 $b->like($output[1], qr/1\.\.1/, "got 1..1 from child");
32 Test::Stream::IOSets->hard_reset;
35 my $pipe_fd = $pipe->fileno;
37 open(STDOUT, ">&$pipe_fd");
38 my $b = Test::Builder->create(shared_stream => 1);