modules/stat-time-tests


Log

Author Commit Date CI Message
Bruno Haible 987e5651 2009-12-24T21:01:42 Refactor common macros used in tests.
Eric Blake 6038ee4b 2009-11-17T09:58:18 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>
Eric Blake 17090f6d 2009-10-12T10:37:48 stat-time-tests: minor cleanups * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE. * tests/test-stat-time.c (nap): Separate assignment from call. Suggested by Paolo Bonzini and Bruno Haible. Signed-off-by: Eric Blake <ebb9@byu.net>
Jim Meyering fd35e151 2009-10-10T11:05:22 stat-time-tests: check for the usleep function * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
Bruno Haible a49cfc24 2009-08-11T12:52:19 Most tests don't need module 'close' any more.
Bruno Haible d626b70f 2009-07-19T17:16:51 Fix build error on mingw with the modules sys_select and unistd.
Bruno Haible 9a665936 2008-04-28T00:12:56 Make test-stat-time pass on mingw.
Bruno Haible 735c00a2 2007-03-27T11:01:11 2007-03-27 Bruno Haible <bruno@clisp.org> * lib/stat-time.h: Include <sys/stat.h>. 2007-03-27 James Youngman <jay@gnu.org> * lib/stat-time.h (get_stat_birthtime): New function for retrieving st_birthtime as provided by UFS2 (hence *BSD). * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime and its variants. * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME. * modules/stat-time-test: New file. * tests/test-stat-time.c: New test, devised by Bruno Haible.