]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Avoid test_write_disk_lookup failure on Windows.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 26 Dec 2011 18:54:55 +0000 (13:54 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 26 Dec 2011 18:54:55 +0000 (13:54 -0500)
Merge r4009 from trunk.

SVN-Revision: 4010

libarchive/test/test_write_disk_lookup.c

index 54a63bb0aea9876028f1f0dac23cd1679b76ffa4..2a5ea4abb9cbcce7747e1ffca4f7e98daf2dd21b 100644 (file)
@@ -107,12 +107,22 @@ DEFINE_TEST(test_write_disk_lookup)
                if (id != 0)
                        id = archive_write_disk_gid(a, "root", 8);
                failure("Unable to verify lookup of group #0");
+#if defined(_WIN32) && !defined(__CYGWIN__)
+               /* Not yet implemented on Windows. */
+               assertEqualInt(8, id);
+#else
                assertEqualInt(0, id);
+#endif
 
                /* Try a few common names for user #0. */
                id = archive_write_disk_uid(a, "root", 8);
                failure("Unable to verify lookup of user #0");
+#if defined(_WIN32) && !defined(__CYGWIN__)
+               /* Not yet implemented on Windows. */
+               assertEqualInt(8, id);
+#else
                assertEqualInt(0, id);
+#endif
        }
 
        /* Deregister again and verify the default lookups again. */