diff options
Diffstat (limited to 'libarchive/test/test_write_disk_secure.c')
-rw-r--r-- | libarchive/test/test_write_disk_secure.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libarchive/test/test_write_disk_secure.c b/libarchive/test/test_write_disk_secure.c index c14dadc..31c5bfd 100644 --- a/libarchive/test/test_write_disk_secure.c +++ b/libarchive/test/test_write_disk_secure.c @@ -34,9 +34,9 @@ __FBSDID("$FreeBSD: head/lib/libarchive/test/test_write_disk_secure.c 201247 200 DEFINE_TEST(test_write_disk_secure) { -#if ARCHIVE_VERSION_NUMBER < 1009000 - skipping("archive_write_disk interface"); -#elif !defined(_WIN32) || defined(__CYGWIN__) +#if defined(_WIN32) && !defined(__CYGWIN__) + skipping("archive_write_disk security checks not supported on Windows"); +#else struct archive *a; struct archive_entry *ae; struct stat st; @@ -178,7 +178,7 @@ DEFINE_TEST(test_write_disk_secure) assert(S_ISDIR(st.st_mode)); archive_entry_free(ae); - assert(0 == archive_write_finish(a)); + assertEqualInt(ARCHIVE_OK, archive_write_free(a)); /* Test the entries on disk. */ assert(0 == lstat("dir", &st)); |