mirror of https://git.tukaani.org/xz.git
Tests: Improve comments in test_index.c.
This commit is contained in:
parent
4b23b84b89
commit
4a4180ce74
|
@ -141,18 +141,18 @@ test_lzma_index_append(void)
|
||||||
assert_lzma_ret(lzma_index_append(idx, NULL, UNPADDED_SIZE_MAX,
|
assert_lzma_ret(lzma_index_append(idx, NULL, UNPADDED_SIZE_MAX,
|
||||||
1), LZMA_DATA_ERROR);
|
1), LZMA_DATA_ERROR);
|
||||||
|
|
||||||
// Test compressed size growing too large.
|
// Test uncompressed size growing too large.
|
||||||
// Should result in LZMA_DATA_ERROR.
|
// Should result in LZMA_DATA_ERROR.
|
||||||
assert_lzma_ret(lzma_index_append(idx, NULL,
|
assert_lzma_ret(lzma_index_append(idx, NULL,
|
||||||
UNPADDED_SIZE_MIN, LZMA_VLI_MAX), LZMA_OK);
|
UNPADDED_SIZE_MIN, LZMA_VLI_MAX), LZMA_OK);
|
||||||
assert_lzma_ret(lzma_index_append(idx, NULL,
|
assert_lzma_ret(lzma_index_append(idx, NULL,
|
||||||
UNPADDED_SIZE_MIN, 1), LZMA_DATA_ERROR);
|
UNPADDED_SIZE_MIN, 1), LZMA_DATA_ERROR);
|
||||||
|
|
||||||
|
lzma_index_end(idx, NULL);
|
||||||
|
|
||||||
// Currently not testing for error case when the size of the Index
|
// Currently not testing for error case when the size of the Index
|
||||||
// grows too large to be stored. This was not practical to test for
|
// grows too large to be stored. This was not practical to test for
|
||||||
// since too many Blocks needed to be created to cause this.
|
// since too many Blocks needed to be created to cause this.
|
||||||
|
|
||||||
lzma_index_end(idx, NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue