utimensat-tests, etc.: try to fix some races
[gnulib.git] / modules / lchown-tests
index 47aec96..d7288fe 100644 (file)
@@ -8,7 +8,7 @@ tests/macros.h
 Depends-on:
 ignore-value
 mgetgroups
-usleep
+nanosleep
 stat-time
 stdbool
 symlink
@@ -19,3 +19,4 @@ AC_CHECK_FUNCS_ONCE([getegid])
 Makefile.am:
 TESTS += test-lchown
 check_PROGRAMS += test-lchown
+test_lchown_LDADD = $(LDADD) $(LIB_NANOSLEEP)