From: Nix Date: Tue, 10 Feb 2009 08:04:23 +0000 (+0000) Subject: tests: avoid skipping stty-* tests X-Git-Tag: v7.1~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c8e4f69181b1fc8d55accf803761425ba2d8cbf;p=thirdparty%2Fcoreutils.git tests: avoid skipping stty-* tests * tests/test-lib.sh (require_controlling_input_terminal_): Check stdout, not stdin. --- diff --git a/tests/test-lib.sh b/tests/test-lib.sh index 8bb88d9745..0c04af827e 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