test-stat-time: port to buggy NFS clients
authorEric Blake <ebb9@byu.net>
Sat, 10 Oct 2009 03:09:38 +0000 (21:09 -0600)
committerEric Blake <ebb9@byu.net>
Sat, 10 Oct 2009 03:45:24 +0000 (21:45 -0600)
commitf9f3206eb29d0f56a6509c727fe8df2ddb002e71
tree370b2ebd0dcd56fbb906ef00110e67769922cad6
parent231bdaf6198a766ae5442fef6f4b8e661d523868
test-stat-time: port to buggy NFS clients

On darwin, the NFS client reports mtime with st_sec==INT_MAX and
st_nsec monotonically increasing per transaction until the next
sync(); but sync() is expensive, so it is easier to just skip
this part of the test if mtime is nowhere near ctime.

* tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
(test_ctime): Also skip test if mtime and ctime are skewed.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
tests/test-stat-time.c