summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test-lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-lib.sh b/tests/test-lib.sh
index 8bb88d974..0c04af827 100644
--- a/tests/test-lib.sh
+++ b/tests/test-lib.sh
@@ -68,7 +68,7 @@ require_strace_()
require_controlling_input_terminal_()
{
tty -s || have_input_tty=no
- test -t 1 || have_input_tty=no
+ test -t 0 || have_input_tty=no
if test "$have_input_tty" = no; then
echo "$0: This test must have a controlling input \`terminal'," 1>&2
echo " so it may not be run via \`batch', \`at', or \`rsh'." 1>&2