summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-03-09 18:21:29 +0000
committerJim Meyering <jim@meyering.net>2001-03-09 18:21:29 +0000
commitc21430123df24081a889d6b19082021badfd1ab8 (patch)
tree2c9e792cadc9619cc67e73ba0cd26e6f61f326a2
parentc19b40fd68e7eb65b686be31396f5751eea7f7b3 (diff)
downloadcoreutils-c21430123df24081a889d6b19082021badfd1ab8.tar.xz
moved from stty/~
-rw-r--r--tests/input-tty8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/input-tty b/tests/input-tty
new file mode 100644
index 000000000..7353aaefd
--- /dev/null
+++ b/tests/input-tty
@@ -0,0 +1,8 @@
+# This test is used from at least two separate scripts.
+
+tty -s || 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
+ exit 77
+fi