tests/test-stat-time.c


Log

Author Commit Date CI Message
Bruno Haible 9a665936 2008-04-28T00:12:56 Make test-stat-time pass on mingw.
Bruno Haible e220635f 2008-04-11T16:31:39 Flush the standard error stream before aborting.
Bruno Haible 57fdfd3f 2007-10-07T19:14:58 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible 75d14636 2007-04-29T09:15:13 Better ASSERT macro.
Bruno Haible a03613b6 2007-03-31T21:04:26 2007-03-30 James Youngman <jay@gnu.org> * tests/test-stat-time.c (prepare_test): use chmod() rather than rename() to change the ctime of a file (because ctime is unaffected by rename on jfs2 on AIX 5.1). (main): Start by doing cleanup, in case a previous run failed leaving test files behind.
Bruno Haible 1036a1ce 2007-03-29T23:01:29 Make it compile on AIX.
Paul Eggert b11bca01 2007-03-27T18:51:17 * lib/stat-time.h (USE_BIRTHTIME): Remove. (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns): (get_stat_birthtime_ns): Do not try to use "spare" fields. (get_stat_birthtime_ns): Simplify compile-time tests. (get_stat_birthtime): Change the API to look like get_stat_mtime etc., except return a negative tv_nsec on error. * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME): Don't check for "spare" fields. (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec or for struct stat.st_birthtime, as these tests aren't used. * tests/test-stat-time.c (test_birthtime): Adjust to new API.
Bruno Haible fb2f5965 2007-03-27T16:53:53 Fix signal handler.
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.