mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
tests: avoid skipping stty-* tests
* tests/test-lib.sh (require_controlling_input_terminal_): Check stdout, not stdin.
This commit is contained in:
1 parent
ed85df444a
commit
9c8e4f6918
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user