From: Tim Kientzle Date: Fri, 18 Jul 2014 02:56:29 +0000 (-0700) Subject: Do not assume dir atime updates; not everyone does X-Git-Tag: v3.1.900a~258 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=036e24ab0aca1af3c2737caa7b35e88e36d84d48;p=thirdparty%2Flibarchive.git Do not assume dir atime updates; not everyone does --- diff --git a/libarchive/test/test_read_disk_directory_traversals.c b/libarchive/test/test_read_disk_directory_traversals.c index 3ecfbc2d5..2fc45d1bc 100644 --- a/libarchive/test/test_read_disk_directory_traversals.c +++ b/libarchive/test/test_read_disk_directory_traversals.c @@ -1090,8 +1090,10 @@ test_restore_atime(void) failure("There must be no entry"); assertEqualIntA(a, ARCHIVE_EOF, archive_read_next_header2(a, ae)); - failure("Atime should be restored"); - assertFileAtimeRecent("at"); + /* On FreeBSD (and likely other systems), atime on + dirs does not change when it is read. */ + /* failure("Atime should be restored"); */ + /* assertFileAtimeRecent("at"); */ failure("Atime should be restored"); assertFileAtimeRecent("at/f1"); failure("Atime should be restored");