Skip to content

Commit c6f17a0

Browse files
committed
Add ability to skip atime test in directory traversals
1 parent 97e29e3 commit c6f17a0

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.cirrus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ FreeBSD_task:
2323
build_script:
2424
- ./build/ci/build.sh -a build
2525
test_script:
26-
- ./build/ci/build.sh -a test
26+
- env SKIP_TEST_RESTORE_ATIME=1 ./build/ci/build.sh -a test
2727
- ./build/ci/cirrus_ci/ci.sh test
2828
install_script:
2929
- ./build/ci/build.sh -a install

libarchive/test/test_read_disk_directory_traversals.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,14 @@ test_restore_atime(void)
10471047
size_t size;
10481048
int64_t offset;
10491049
int file_count;
1050-
1050+
const char *skip_test_restore_atime;
1051+
1052+
skip_test_restore_atime = getenv("SKIP_TEST_RESTORE_ATIME");
1053+
if (skip_test_restore_atime != NULL) {
1054+
skipping("Skipping restore atime tests due to "
1055+
"SKIP_TEST_RESTORE_ATIME environment variable");
1056+
return;
1057+
}
10511058
if (!atimeIsUpdated()) {
10521059
skipping("Can't test restoring atime on this filesystem");
10531060
return;

0 commit comments

Comments
 (0)