]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
On Windows, skip test_owner_parse. Windows cannot handle uid/gid as
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 16 Mar 2009 12:47:21 +0000 (08:47 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 16 Mar 2009 12:47:21 +0000 (08:47 -0400)
UNIX like system. We need to improve it.

Now all bsdcpio tests passed.
Results are:
0 of 22 tests reported failures
 Total of 675 assertions checked.
 Total of 0 assertions failed.
 Total of 1 assertions skipped.

SVN-Revision: 773

cpio/test/test_owner_parse.c

index 1adbce4a9fc310f197d35e0406c0ddfb98697f34..92a8cebdcd2f5ab929330afc3a3cb3132dcd31b7 100644 (file)
@@ -29,6 +29,10 @@ __FBSDID("$FreeBSD$");
 
 DEFINE_TEST(test_owner_parse)
 {
+#if defined(_WIN32) && !defined(__CYGWIN__)
+       /* TODO: Does this need cygwin style handling of uid/gid ? */
+       skipping("Windows cannot handle uid/gid as UNIX like system");
+#else
        int uid, gid;
 
        cpio_progname = "Ignore this message";
@@ -65,4 +69,5 @@ DEFINE_TEST(test_owner_parse)
        assertEqualInt(1, owner_parse("root:nonexistentgroup", &uid, &gid));
        assertEqualInt(1,
            owner_parse("nonexistentuser:nonexistentgroup", &uid, &gid));
+#endif
 }