Fix for [perl #34252] Access rights in FindBin::Bin
[p5sagit/p5-mst-13.2.git] / lib / FileHandle.t
index eaddf49..ddbd944 100755 (executable)
@@ -8,6 +8,10 @@ BEGIN {
        print "1..0\n";
        exit 0;
     }
+    if ($^O eq 'mpeix') {
+       print "1..0 # Skip: broken on MPE/iX\n";
+       exit 0;
+    }
 }
 
 use FileHandle;
@@ -18,7 +22,7 @@ autoflush STDOUT 1;
 $mystdout = new_from_fd FileHandle 1,"w";
 $| = 1;
 autoflush $mystdout;
-print "1..11\n";
+print "1..12\n";
 
 print $mystdout "ok ".fileno($mystdout)."\n";
 
@@ -89,3 +93,5 @@ else {
    exit(0);
   }
 }
+
+print FileHandle->new('','r') ? "not ok 12\n" : "ok 12\n";