]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Add new assertions to verify atime, birthtime, and mtime, both
authorTim Kientzle <kientzle@gmail.com>
Sun, 6 Sep 2009 06:44:40 +0000 (02:44 -0400)
committerTim Kientzle <kientzle@gmail.com>
Sun, 6 Sep 2009 06:44:40 +0000 (02:44 -0400)
commit72c342e64e7edbca6304b85eb0be75662b35b364
tree75a2ff22e340fcada35c17765ba7e5b73f298865
parentd30761d3504bcaf0d2f4d8c81b0feadffafb5e6e
Add new assertions to verify atime, birthtime, and mtime, both
for exact values and "recent".  Sketch in support for FreeBSD
(including high-res), Windows (including high-res and birthtime),
and generic POSIX.

Inspired in part by the discovery that stat() on Windows shifts mtime
values depending on DST settings, so the old code that used stat()
breaks in weird ways on Windows.  GetFileTime() seems to not have this
problem, but using that requires that we not use stat().

SVN-Revision: 1431
libarchive/test/main.c
libarchive/test/test.h
libarchive/test/test_write_disk.c
libarchive/test/test_write_disk_times.c