README \
check.mk \
envvar-check \
- input-tty \
lang-default \
other-fs-tmpdir \
require-perl \
+++ /dev/null
-# 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 77
-fi
fi
# Make sure there's a tty on stdin.
-. $srcdir/input-tty
. $srcdir/test-lib.sh
+require_controlling_input_terminal_
# The following list of reversible options was generated with
# grep -w REV stty.c|sed -n '/^ {"/{s//REV_/;s/".*/=1/;p;}'|fmt
stty --version
fi
-# Make sure there's a tty on stdin.
-. $srcdir/input-tty
. $srcdir/test-lib.sh
+require_controlling_input_terminal_
fail=0
LC_ALL=C
export LC_ALL
-# Make sure there's a tty on stdin.
-. $srcdir/input-tty
. $srcdir/test-lib.sh
+require_controlling_input_terminal_
# Versions of GNU stty from shellutils-1.9.2c and earlier failed
# tests #2 and #4 when run on SunOS 4.1.3.
mv --version
fi
-. $srcdir/input-tty
. $srcdir/test-lib.sh
+require_controlling_input_terminal_
skip_if_root_
touch f g h i || framework_failure
skip_test_ 'strace -qe "'"$1"'" does not work'
}
+# Require a controlling input `terminal'.
+require_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 77
+ fi
+}
+
require_built_()
{
skip_=no