From: Michihiro NAKAJIMA Date: Sun, 6 Dec 2009 10:15:58 +0000 (-0500) Subject: Add check of the number of the nlink to an xar test. X-Git-Tag: v2.8.0~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad382cded872249fa23515034c3ce6afd44b65b3;p=thirdparty%2Flibarchive.git Add check of the number of the nlink to an xar test. SVN-Revision: 1706 --- diff --git a/libarchive/test/test_read_format_xar.c b/libarchive/test/test_read_format_xar.c index 9b1cf9692..a69667760 100644 --- a/libarchive/test/test_read_format_xar.c +++ b/libarchive/test/test_read_format_xar.c @@ -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.