tests: move input-tty into a test-lib.sh function
[platform/upstream/coreutils.git] / tests / misc / stty-row-col
index 7fc917f..8ac1143 100755 (executable)
@@ -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.