summaryrefslogtreecommitdiff
path: root/modules/lchown-tests
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-11-17 09:58:18 -0700
committerEric Blake <ebb9@byu.net>2009-11-17 22:33:56 -0700
commit6038ee4b827caaf05fa37dbb2304fedb9d0cd6c7 (patch)
treef2989aa60b662c9546d1047040bb83f66977f457 /modules/lchown-tests
parente8eecfd3f7d37692a7b87779b69d6fdc22d88d4d (diff)
downloadgnulib-6038ee4b827caaf05fa37dbb2304fedb9d0cd6c7.tar.gz
usleep: use it to simplify tests
Blindly using usleep makes it easier to write tests. * modules/stat-time-tests (Depends-on): Add usleep. (configure.ac): Drop usleep check. * modules/chown-tests (Depends-on, configure.ac): Likewise. * modules/lchown-tests (Depends-on, configure.ac): Likewise. * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise. * modules/futimens-tests (Depends-on, configure.ac): Likewise. * modules/openat-tests (Depends-on, configure.ac): Likewise. * modules/utimens-tests (Depends-on, configure.ac): Likewise. * modules/utimensat-tests (Depends-on, configure.ac): Likewise. * modules/pipe-filter-gi-tests (Depends-on, configure.ac): Likewise. * tests/test-chown.h (nap): Rely on nicer usleep semantics. * tests/test-lchown.h (nap): Likewise. * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise. * tests/test-stat-time.c (nap): Likewise. * tests/test-utimens-common.h (nap): Update comments. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'modules/lchown-tests')
-rw-r--r--modules/lchown-tests4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/lchown-tests b/modules/lchown-tests
index c33103a6b3..8b71e75258 100644
--- a/modules/lchown-tests
+++ b/modules/lchown-tests
@@ -5,13 +5,13 @@ tests/test-lchown.c
Depends-on:
mgetgroups
progname
-sleep
+usleep
stat-time
stdbool
symlink
configure.ac:
-AC_CHECK_FUNCS_ONCE([getegid usleep])
+AC_CHECK_FUNCS_ONCE([getegid])
Makefile.am:
TESTS += test-lchown