mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
24 lines
1.3 KiB
Diff
24 lines
1.3 KiB
Diff
Index: libarchive/test/test_compat_zip.c
|
|
===================================================================
|
|
--- libarchive/test/test_compat_zip.c (revision 4197)
|
|
+++ libarchive/test/test_compat_zip.c (revision 4198)
|
|
@@ -359,12 +359,16 @@
|
|
assertEqualIntA(a, ARCHIVE_OK, archive_read_next_header(a, &ae));
|
|
assertEqualString("New Folder/New Folder/", archive_entry_pathname(ae));
|
|
assertEqualInt(AE_IFDIR, archive_entry_filetype(ae));
|
|
- assertEqualInt(1327314468, archive_entry_mtime(ae));
|
|
+ /* Zip timestamps are local time, so vary by time zone. */
|
|
+ /* TODO: A more complex assert would work here; we could
|
|
+ verify that it's within +/- 24 hours of a particular value. */
|
|
+ /* assertEqualInt(1327314468, archive_entry_mtime(ae)); */
|
|
assertEqualInt(0, archive_entry_size(ae));
|
|
assertEqualIntA(a, ARCHIVE_OK, archive_read_next_header(a, &ae));
|
|
assertEqualString("New Folder/New Folder/New Text Document.txt", archive_entry_pathname(ae));
|
|
assertEqualInt(AE_IFREG, archive_entry_filetype(ae));
|
|
- assertEqualInt(1327314476, archive_entry_mtime(ae));
|
|
+ /* Zip timestamps are local time, so vary by time zone. */
|
|
+ /* assertEqualInt(1327314476, archive_entry_mtime(ae)); */
|
|
assertEqualInt(11, archive_entry_size(ae));
|
|
assertEqualIntA(a, ARCHIVE_EOF, archive_read_next_header(a, &ae));
|
|
}
|