test-stat-time: speed up execution
authorEric Blake <ebb9@byu.net>
Fri, 9 Oct 2009 17:55:46 +0000 (11:55 -0600)
committerEric Blake <ebb9@byu.net>
Sat, 10 Oct 2009 01:07:53 +0000 (19:07 -0600)
commit4e42b89b090f61e189e7161a3f096cabc832b6d3
tree61947e0db7784beeac8a3f8efc317cac91b187cb
parentf4dc80620e25623a69aa852bec5a52e150cedd4a
test-stat-time: speed up execution

Eight seconds was painfully long.

* tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
warning on mingw.
(nap): New helper function.
(prepare_test): Use it to reduce sleep time.
(test_mtime, test_ctime, test_birthtime): Allow for subsecond
execution.
* modules/stat-time-tests (configure.ac): Check for usleep.

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