aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2023-01-06 17:58:48 +0200
committerLasse Collin <lasse.collin@tukaani.org>2023-01-06 17:58:48 +0200
commitfc0c788469159f634f09ff23c8cef6925c91da57 (patch)
treec93b00ffc0bde7d522e4e5df02fc34de56ee8f97 /tests
parentTests: test_index_hash: Fix a memory leak. (diff)
downloadxz-fc0c788469159f634f09ff23c8cef6925c91da57.tar.xz
Tests: test_index_hash: Add an assert_uint_eq().
Diffstat (limited to '')
-rw-r--r--tests/test_index_hash.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_index_hash.c b/tests/test_index_hash.c
index 063ec0f2..2cf91138 100644
--- a/tests/test_index_hash.c
+++ b/tests/test_index_hash.c
@@ -140,6 +140,9 @@ generate_index(uint8_t *buf, const lzma_vli *unpadded_sizes,
// Add the CRC32
write32le(buf + out_pos, lzma_crc32(buf, out_pos, 0));
+ out_pos += 4;
+
+ assert_uint_eq(out_pos, index_max_size);
}
#endif
#endif