6 require Config; import Config;
7 if ($Config{'extensions'} !~ /\bIO\b/ && $^O ne 'VMS') {
12 print "1..0 # Skip: broken on MPE/iX\n";
22 $mystdout = new_from_fd FileHandle 1,"w";
27 print $mystdout "ok ".fileno($mystdout)."\n";
29 $fh = (new FileHandle "./TEST", O_RDONLY
30 or new FileHandle "TEST", O_RDONLY)
35 print $buffer eq "#!./perl\n" ? "ok 3\n" : "not ok 3\n";
39 CORE::read($fh, $buf,1);
40 print $buf eq 'A' ? "ok 4\n" : "not ok 4\n";
46 print "not " unless ($fh->open("< TEST") && <$fh> eq $buffer);
50 print "#possible mixed CRLF/LF in t/TEST\nnot " unless (<$fh> eq $buffer);
55 print "not " if (defined($line) || !$fh->eof);
58 print "not " unless ($fh->open("TEST","r") && !$fh->tell && $fh->close);
68 print "not " unless ($|);
77 ($rd,$wr) = FileHandle::pipe;
79 if ($^O eq 'VMS' || $^O eq 'os2' || $^O eq 'amigaos' || $^O eq 'MSWin32' || $^O eq 'NetWare' ||
80 $Config{d_fork} ne 'define') {
82 $wr->printf("ok %d\n",11);
92 $wr->printf("ok %d\n",11);
97 print FileHandle->new('','r') ? "not ok 12\n" : "ok 12\n";