From a31efee11a0573b04eb23c100e71d6d6f10de42b Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Thu, 15 May 2008 17:19:20 -0400 Subject: [PATCH] Extend the fflags test just a tad. This could be significantly improved. SVN-Revision: 56 --- libarchive/test/test_entry.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libarchive/test/test_entry.c b/libarchive/test/test_entry.c index 8386d9892..5ed3278c6 100644 --- a/libarchive/test/test_entry.c +++ b/libarchive/test/test_entry.c @@ -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. */ -- 2.47.3