Don't hang when there's no input tty.
authorJim Meyering <jim@meyering.net>
Thu, 14 Dec 2006 18:32:10 +0000 (19:32 +0100)
committerJim Meyering <jim@meyering.net>
Thu, 14 Dec 2006 18:32:10 +0000 (19:32 +0100)
* tests/cp/open-perm-race: Skip this test if there is no
controlling input `terminal'.

ChangeLog
tests/cp/open-perm-race

index f3c23cf..ac9f5a4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,13 @@
 2006-12-14  Jim Meyering  <jim@meyering.net>
 
+       Don't hang when there's no input tty.
+       * tests/cp/open-perm-race: Skip this test if there is no
+       controlling input `terminal'.
+
        Test for a hard-to-detect race fix, using gdb.
        * tests/cp/open-perm-race: New file, to test for the
        cp --preserve=ownership fix of 2006-12-06.
+
        * tests/cp/Makefile.am (TESTS_ENVIRONMENT): Define abs_top_builddir.
        (TESTS): Add open-perm-race.
 
index 6c73438..b09776a 100755 (executable)
@@ -26,6 +26,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
+. $srcdir/../input-tty
 . $srcdir/../envvar-check
 . $srcdir/../group-names
 PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check