1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 03:12:48 +02:00

tests: move input-tty into a test-lib.sh function

* tests/test-lib.sh (require_controlling_input_terminal_): New function, from
* tests/input-tty: ...here.  Remove file.
* tests/Makefile.am (EXTRA_DIST): Remove input-tty.
* tests/mv/i-3: Use the function, not the file.
* tests/misc/stty: Likewise.
* tests/misc/stty-row-col: Likewise.
* tests/misc/stty-invalid: Likewise.
This commit is contained in:
Jim Meyering
2008-09-07 11:54:43 +02:00
parent e4fa3e7808
commit 22e5102f19
7 changed files with 17 additions and 17 deletions

View File

@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
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

View File

@@ -21,9 +21,8 @@ if test "$VERBOSE" = yes; then
stty --version
fi
# Make sure there's a tty on stdin.
. $srcdir/input-tty
. $srcdir/test-lib.sh
require_controlling_input_terminal_
fail=0

View File

@@ -36,9 +36,8 @@ export COLUMNS
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.