From af8db99768722348ff1525260e91c6ed2181600c Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Mon, 19 Oct 2020 11:16:04 +0100 Subject: [PATCH] Reduce test_write_format_7zip_large_lzma1 buffer size Some of the test_write_format_7zip_large take longer than 10 minutes to run on QEMU-RISC-V and therefore time out when run as part of the FreeBSD test suite. This is even more noticeable when running on a CHERI-enabled QEMU since the emulation of tagged memory makes it run slower. On my local machine the impact is not as extreme, but test_write_format_7zip_large_lzma1 takes 375ms when TEST_SLOW_HOST is set and 8.2 seconds normally (i.e. 22 times slower). The other alternative would be to skip these tests when not running on real hardware, but it seems to me that compressing a smaller amount of random data is preferable. --- libarchive/test/test_write_format_7zip_large.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libarchive/test/test_write_format_7zip_large.c b/libarchive/test/test_write_format_7zip_large.c index 5c49f59a1..eb01b3092 100644 --- a/libarchive/test/test_write_format_7zip_large.c +++ b/libarchive/test/test_write_format_7zip_large.c @@ -27,7 +27,7 @@ #include "test.h" __FBSDID("$FreeBSD$"); -#define LARGE_SIZE (16*1024*1024) +#define LARGE_SIZE (1*1024*1024) static void test_large(const char *compression_type) { -- 2.47.2