summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-07-12 07:33:35 +0000
committerJim Meyering <jim@meyering.net>2003-07-12 07:33:35 +0000
commitf32880226105b53360f27febd753c964cd79ead8 (patch)
treefdc349cc1f60de50ca9fefbd08cd2b4d8b96ce0b /tests
parent4e85b8c0c89309eca767ec98dd71385544bec86d (diff)
downloadcoreutils-f32880226105b53360f27febd753c964cd79ead8.tar.xz
Also check `test -t 1'.
This is necessary on linux-2.4.21, otherwise, the test stty/basic-1 would hang when run in the background.
Diffstat (limited to 'tests')
-rw-r--r--tests/input-tty2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/input-tty b/tests/input-tty
index bba9eb794..95a3c37ca 100644
--- a/tests/input-tty
+++ b/tests/input-tty
@@ -1,8 +1,10 @@
# Require a controlling input `terminal'.
tty -s || have_input_tty=no
+test -t 1 || 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
+ echo " On some systems, it may not even be run in the background." 1>&2
(exit 77; exit); exit
fi