tests: avoid skipping stty-* tests

* tests/test-lib.sh (require_controlling_input_terminal_):
Check stdout, not stdin.
This commit is contained in:
Nix authored and Jim Meyering committed 2009-02-10 14:38:42 +01:00
1 parent ed85df444a
commit 9c8e4f6918
1 file changed
+1 -1
+1 -1
View 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