4 unless(grep /blib/, @INC) {
6 unshift @INC, '../lib' if -d '../lib';
13 if(-d "lib" && -f "TEST") {
14 if (! $Config{'d_fork'} ||
15 ($Config{'extensions'} !~ /\bIO\b/ && $^O ne 'VMS'))
30 $pipe = new IO::Pipe->reader($perl, '-e', 'print "not ok 1\n"');
35 $pipe->close or print "# \$!=$!\nnot ";
38 $cmd = 'BEGIN{$SIG{ALRM} = sub {print "not ok 4\n"; exit}; alarm 10} s/not //';
39 $pipe = new IO::Pipe->writer($perl, '-pe', $cmd);
40 print $pipe "not ok 3\n" ;
41 $pipe->close or print "# \$!=$!\nnot ";
44 # Check if can fork with dynamic extensions (bug in CRT):
46 system "$^X -I../lib -MOpcode -e 'defined fork or die' > /dev/null 2>&1") {
47 print "ok $_ # skipped: broken fork\n" for 5..10;
66 $stdin = bless \*STDIN, "IO::Handle";
67 $stdin->fdopen($pipe,"r");
68 exec 'tr', 'YX', 'ko';
92 $stdout = bless \*STDOUT, "IO::Handle";
93 $stdout->fdopen($pipe,"w");
94 print STDOUT "not ok 7\n";
95 exec 'echo', 'not ok 8';
102 $pipe = new IO::Pipe;
105 $SIG{'PIPE'} = 'broken_pipe';
111 print $pipe "not ok 9\n";