From 22e5102f1961c5552d20c3791cbc99b6b001e83f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 7 Sep 2008 11:54:43 +0200 Subject: 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. --- tests/misc/stty-invalid | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/misc/stty-invalid') diff --git a/tests/misc/stty-invalid b/tests/misc/stty-invalid index 168bb59af..302dbe0ec 100755 --- a/tests/misc/stty-invalid +++ b/tests/misc/stty-invalid @@ -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 -- cgit v1.2.3-70-g09d2