From: Michihiro NAKAJIMA Date: Mon, 16 Mar 2009 12:47:21 +0000 (-0400) Subject: On Windows, skip test_owner_parse. Windows cannot handle uid/gid as X-Git-Tag: v2.7.0~156 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee5aed0fe356d39ed2ea4e68e17f7e17a0ca3e71;p=thirdparty%2Flibarchive.git On Windows, skip test_owner_parse. Windows cannot handle uid/gid as 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 --- diff --git a/cpio/test/test_owner_parse.c b/cpio/test/test_owner_parse.c index 1adbce4a9..92a8cebdc 100644 --- a/cpio/test/test_owner_parse.c +++ b/cpio/test/test_owner_parse.c @@ -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 }