]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid skipping stty-* tests
authorNix <nix@esperi.org.uk>
Tue, 10 Feb 2009 08:04:23 +0000 (08:04 +0000)
committerJim Meyering <meyering@redhat.com>
Tue, 10 Feb 2009 13:38:42 +0000 (14:38 +0100)
* tests/test-lib.sh (require_controlling_input_terminal_):
Check stdout, not stdin.

tests/test-lib.sh

index 8bb88d9745f413cf3820840a7f58bb6c02bd23c9..0c04af827e02d1ee9fbadea89f2141d8437b21b8 100644 (file)
@@ -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