Skip to content

Commit 6e43e20

Browse files
authored
tests: reduce zstd long option to 23 (libarchive#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: libarchive#2080 Signed-off-by: Emil Velikov <[email protected]>
1 parent 4b279ba commit 6e43e20

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Diff for: libarchive/test/test_write_filter_zstd.c

+2-6
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,8 @@ DEFINE_TEST(test_write_filter_zstd)
230230
archive_write_set_filter_option(a, NULL, "max-frame-out", "1GB"));
231231
#endif
232232
#if ZSTD_VERSION_NUMBER >= MINVER_LONG
233-
if ((int)(sizeof(size_t) == 4))
234-
assertEqualIntA(a, ARCHIVE_OK,
235-
archive_write_set_filter_option(a, NULL, "long", "26"));
236-
else
237-
assertEqualIntA(a, ARCHIVE_OK,
238-
archive_write_set_filter_option(a, NULL, "long", "27"));
233+
assertEqualIntA(a, ARCHIVE_OK,
234+
archive_write_set_filter_option(a, NULL, "long", "23"));
239235
assertEqualIntA(a, ARCHIVE_FAILED,
240236
archive_write_set_filter_option(a, NULL, "long", "-1")); /* negative */
241237
#endif

0 commit comments

Comments
 (0)