aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/test/test_fuzz.c
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/test/test_fuzz.c')
-rw-r--r--libarchive/test/test_fuzz.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libarchive/test/test_fuzz.c b/libarchive/test/test_fuzz.c
index 2025834ca424..d02fd993f972 100644
--- a/libarchive/test/test_fuzz.c
+++ b/libarchive/test/test_fuzz.c
@@ -58,6 +58,14 @@ test_fuzz(const struct files *filesets)
size_t blk_size;
int64_t blk_offset;
int n;
+ const char *skip_fuzz_tests;
+
+ skip_fuzz_tests = getenv("SKIP_TEST_FUZZ");
+ if (skip_fuzz_tests != NULL) {
+ skipping("Skipping fuzz tests due to SKIP_TEST_FUZZ "
+ "environment variable");
+ return;
+ }
for (n = 0; filesets[n].names != NULL; ++n) {
const size_t buffsize = 30000000;