]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Add check of the number of the nlink to an xar test.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 6 Dec 2009 10:15:58 +0000 (05:15 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 6 Dec 2009 10:15:58 +0000 (05:15 -0500)
SVN-Revision: 1706

libarchive/test/test_read_format_xar.c

index 9b1cf969201f4280f73d13f601808b50e0c031f5..a6966776081942f9a31378e22fa47717c6279f8f 100644 (file)
@@ -118,6 +118,7 @@ static void verify1(struct archive *a, struct archive_entry *ae)
        assertEqualString(archive_entry_hardlink(ae), "f1");
        assert(archive_entry_symlink(ae) == NULL);
        assertEqualInt(archive_entry_mtime(ae), 86401);
+       assertEqualInt(archive_entry_nlink(ae), 2);
 }
 
 /* Verify that symlinks are read correctly.