From: Alexey Tourbin Date: Sat, 17 Mar 2007 19:28:33 +0000 (+0300) Subject: perl5db.t: skip test when /dev/tty is not available X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9366364f60d5a0aaad2a616e814a46be2ec03c74;p=p5sagit%2Fp5-mst-13.2.git perl5db.t: skip test when /dev/tty is not available Message-ID: <20070317162833.GA10670@solemn.turbinal> p4raw-id: //depot/perl@30609 --- diff --git a/lib/perl5db.t b/lib/perl5db.t index 9c95a5b..fe39292 100644 --- a/lib/perl5db.t +++ b/lib/perl5db.t @@ -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);