From: Luis Henriques Date: Fri, 25 Sep 2020 09:09:44 +0000 (+0100) Subject: Fix test clean-up X-Git-Tag: v3.5.0~14^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1442%2Fhead;p=thirdparty%2Flibarchive.git Fix test clean-up On test clean-up an 'rm -rf' will fail because 'lock' and 'lock/lock2' directories have 0311 permissions. Change these permissions on exit so that the directories can be deleted on success. --- diff --git a/libarchive/test/test_read_disk_directory_traversals.c b/libarchive/test/test_read_disk_directory_traversals.c index bbfe91ab8..9efa74281 100644 --- a/libarchive/test/test_read_disk_directory_traversals.c +++ b/libarchive/test/test_read_disk_directory_traversals.c @@ -1833,6 +1833,8 @@ test_parent(void) } assertChdir(".."); + assertChmod("lock", 0755); + assertChmod("lock/lock2", 0755); /* Destroy the disk object. */ assertEqualInt(ARCHIVE_OK, archive_read_free(a));