From 6e43e20301f12a1b6871386455299b6a7067afc1 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sun, 1 Sep 2024 04:28:57 +0100 Subject: [PATCH] tests: reduce zstd long option to 23 (#2305) With 26 and 27, the sub-test is pushing 2G and 4G memory respectively. There is no particular reason why we need to push for higher limits here, so let's pick 23 with weights around 0.25G. The test suite overall is in the 0.25 - 0.5G range and this fits perfectly. Closes: https://github.com/libarchive/libarchive/issues/2080 Signed-off-by: Emil Velikov --- libarchive/test/test_write_filter_zstd.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/libarchive/test/test_write_filter_zstd.c b/libarchive/test/test_write_filter_zstd.c index da711f9e4..07fbaa8ea 100644 --- a/libarchive/test/test_write_filter_zstd.c +++ b/libarchive/test/test_write_filter_zstd.c @@ -230,12 +230,8 @@ DEFINE_TEST(test_write_filter_zstd) archive_write_set_filter_option(a, NULL, "max-frame-out", "1GB")); #endif #if ZSTD_VERSION_NUMBER >= MINVER_LONG - if ((int)(sizeof(size_t) == 4)) - assertEqualIntA(a, ARCHIVE_OK, - archive_write_set_filter_option(a, NULL, "long", "26")); - else - assertEqualIntA(a, ARCHIVE_OK, - archive_write_set_filter_option(a, NULL, "long", "27")); + assertEqualIntA(a, ARCHIVE_OK, + archive_write_set_filter_option(a, NULL, "long", "23")); assertEqualIntA(a, ARCHIVE_FAILED, archive_write_set_filter_option(a, NULL, "long", "-1")); /* negative */ #endif -- 2.47.2