]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Extend the fflags test just a tad.
authorTim Kientzle <kientzle@gmail.com>
Thu, 15 May 2008 21:19:20 +0000 (17:19 -0400)
committerTim Kientzle <kientzle@gmail.com>
Thu, 15 May 2008 21:19:20 +0000 (17:19 -0400)
This could be significantly improved.

SVN-Revision: 56

libarchive/test/test_entry.c

index 8386d98926ef82c1b8c15090be7af3e2d92324c0..5ed3278c60b18c92edb7ed3f03b99b3f0a193984 100644 (file)
@@ -232,6 +232,11 @@ DEFINE_TEST(test_entry)
        assertEqualString(archive_entry_fflags_text(e),
            "uappnd,nouchg,nodump,noopaque,uunlnk");
        /* TODO: Test archive_entry_copy_fflags_text_w() */
+       /* Test archive_entry_copy_fflags_text() */
+       archive_entry_copy_fflags_text(e, "nouappnd, nouchg, dump,uunlnk");
+       archive_entry_fflags(e, &set, &clear);
+       assertEqualInt(16, set);
+       assertEqualInt(7, clear);
 #endif
 
        /* See test_acl_basic.c for tests of ACL set/get consistency. */