]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Reduce test_write_format_7zip_large_lzma1 buffer size 1448/head
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Mon, 19 Oct 2020 10:16:04 +0000 (11:16 +0100)
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Wed, 3 Mar 2021 10:01:56 +0000 (10:01 +0000)
commitaf8db99768722348ff1525260e91c6ed2181600c
tree3ebb4e15742301b838bfa76e06729e7564af7258
parent1a3204c0b011e5626bd5569667bae351c9671dbf
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