1
0
mirror of https://git.tukaani.org/xz.git synced 2026-10-31 03:14:56 +00:00

Tests: test_index: Test lzma_index_memusage(STREAMS_MAX, 1)

This commit is contained in:
Lasse Collin 2026-08-09 16:11:13 +03:00
parent d31b473917
commit 1a4a4df366
No known key found for this signature in database
GPG Key ID: 38EE757D69184620

View File

@ -42,6 +42,7 @@ test_lzma_index_memusage(void)
// The maximum number of Streams should be UINT32_MAX in the
// current implementation even though the parameter is lzma_vli.
assert_uint(lzma_index_memusage(UINT32_MAX, 1), <, UINT64_MAX / 8);
assert_uint_eq(lzma_index_memusage((lzma_vli)UINT32_MAX + 1, 1),
UINT64_MAX);