From 9c8e4f69181b1fc8d55accf803761425ba2d8cbf Mon Sep 17 00:00:00 2001 From: Nix Date: Tue, 10 Feb 2009 08:04:23 +0000 Subject: [PATCH] tests: avoid skipping stty-* tests * tests/test-lib.sh (require_controlling_input_terminal_): Check stdout, not stdin. --- tests/test-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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