perl5db.t: skip test when /dev/tty is not available
Alexey Tourbin [Sat, 17 Mar 2007 19:28:33 +0000 (22:28 +0300)]
Message-ID: <20070317162833.GA10670@solemn.turbinal>

p4raw-id: //depot/perl@30609

lib/perl5db.t

index 9c95a5b..fe39292 100644 (file)
@@ -14,6 +14,10 @@ BEGIN {
        print "1..0 # Skip: no /dev/null\n";
        exit 0;
     }
+    if (!-c "/dev/tty") {
+       print "1..0 # Skip: no /dev/tty\n";
+       exit 0;
+    }
 }
 
 plan(1);