4 unless(grep /blib/, @INC) {
6 @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 ";
59 $stdin = bless \*STDIN, "IO::Handle";
60 $stdin->fdopen($pipe,"r");
61 exec 'tr', 'YX', 'ko';
85 $stdout = bless \*STDOUT, "IO::Handle";
86 $stdout->fdopen($pipe,"w");
87 print STDOUT "not ok 7\n";
88 exec 'echo', 'not ok 8';
98 $SIG{'PIPE'} = 'broken_pipe';
104 print $pipe "not ok 9\n";