summaryrefslogtreecommitdiff
path: root/tests/test-lib.sh
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-02-10 14:30:06 +0100
committerJim Meyering <meyering@redhat.com>2009-02-10 14:39:10 +0100
commit1f4fcd083d3c24349a4cc7b4a4d0ef4aad9d26e6 (patch)
tree141ec5003e1a7a26090ca0c8ffe4a0a9b2a2d746 /tests/test-lib.sh
parent9c8e4f69181b1fc8d55accf803761425ba2d8cbf (diff)
downloadcoreutils-1f4fcd083d3c24349a4cc7b4a4d0ef4aad9d26e6.tar.xz
* tests/test-lib.sh: Use skip_test_... in place of echo...;exit 77.
Diffstat (limited to 'tests/test-lib.sh')
-rw-r--r--tests/test-lib.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test-lib.sh b/tests/test-lib.sh
index 0c04af827..845c45222 100644
--- a/tests/test-lib.sh
+++ b/tests/test-lib.sh
@@ -70,10 +70,9 @@ require_controlling_input_terminal_()
tty -s || have_input_tty=no
test -t 0 || 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
+ skip_test_ "This test must have a controlling input \`terminal'," \
+ "so it may not be run via \`batch', \`at', or \`rsh'." \
+ "On some systems, it may not even be run in the background."
fi
}