summaryrefslogtreecommitdiff
path: root/test.pl
diff options
context:
space:
mode:
authorSalvatore Bonaccorso <carnil@debian.org>2013-10-23 13:21:06 +0200
committerSalvatore Bonaccorso <carnil@debian.org>2013-10-23 13:21:06 +0200
commit81cd3fa9f15b9dab1574fb8bd6512a3895a7bb30 (patch)
tree901c155c4ef7291195e920698b3f60ae013570e5 /test.pl
parent42ee19e60876cfb50ec9471dd6236802e4ad7772 (diff)
Imported Upstream version 1.7.1+dfsg
Diffstat (limited to 'test.pl')
-rwxr-xr-xtest.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.pl b/test.pl
index 90fc303..3ddfd9c 100755
--- a/test.pl
+++ b/test.pl
@@ -15,8 +15,8 @@
use blib;
use Quota;
-if (! -t) {
- print STDERR "\nThis is an interactive test script - input must be a tty\nExiting now.\n";
+if (! -t STDIN || ! -t STDOUT) {
+ print STDERR "\nThis is an interactive test script - input and output must be a tty\nExiting now.\n";
exit;
}
if ($ENV{AUTOMATED_TESTING}) {