]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Skip hardlink checks on Haiku, remove some ancient hacks to get
authorTim Kientzle <kientzle@gmail.com>
Sat, 31 Oct 2009 17:19:37 +0000 (13:19 -0400)
committerTim Kientzle <kientzle@gmail.com>
Sat, 31 Oct 2009 17:19:37 +0000 (13:19 -0400)
libarchive_test to work against libarchive pre-1.9.

SVN-Revision: 1556

libarchive/test/test_write_disk_hardlink.c

index 121407535e55d4816a4c82cd728b208e60222616..f98af403bb446d5c478839a229e8f93380396394 100644 (file)
@@ -43,8 +43,8 @@ __FBSDID("$FreeBSD: src/lib/libarchive/test/test_write_disk_hardlink.c,v 1.5 200
  */
 DEFINE_TEST(test_write_disk_hardlink)
 {
-#if ARCHIVE_VERSION_NUMBER < 1009000
-       skipping("archive_write_disk_hardlink tests");
+#if defined(__HAIKU__)
+       skipping("archive_write_disk_hardlink; hardlinks are not supported on bfs");
 #else
        static const char data[]="abcdefghijklmnopqrstuvwxyz";
        struct archive *ad;
@@ -178,11 +178,7 @@ DEFINE_TEST(test_write_disk_hardlink)
                assertEqualIntA(ad, 0, archive_write_finish_entry(ad));
        }
        archive_entry_free(ae);
-#if ARCHIVE_VERSION_NUMBER < 2000000
-       archive_write_finish(ad);
-#else
        assertEqualInt(0, archive_write_finish(ad));
-#endif
 
        /* Test the entries on disk. */