mirror of
https://git.tukaani.org/xz.git
synced 2025-02-17 14:08:12 +00:00
Tests: test_index: Test lzma_index_buffer_encode() with empty output buf
(cherry picked from commit 2c970debdb285823f01f75e875561d893345ac2b)
This commit is contained in:
parent
20cac20f63
commit
fb42599e44
@ -1628,6 +1628,9 @@ test_lzma_index_buffer_encode(void)
|
|||||||
assert_lzma_ret(lzma_index_buffer_encode(idx, buffer, &out_pos,
|
assert_lzma_ret(lzma_index_buffer_encode(idx, buffer, &out_pos,
|
||||||
0), LZMA_PROG_ERROR);
|
0), LZMA_PROG_ERROR);
|
||||||
out_pos = 0;
|
out_pos = 0;
|
||||||
|
assert_lzma_ret(lzma_index_buffer_encode(idx, buffer, &out_pos,
|
||||||
|
0), LZMA_BUF_ERROR);
|
||||||
|
assert_uint_eq(out_pos, 0);
|
||||||
assert_lzma_ret(lzma_index_buffer_encode(idx, buffer, &out_pos,
|
assert_lzma_ret(lzma_index_buffer_encode(idx, buffer, &out_pos,
|
||||||
1), LZMA_BUF_ERROR);
|
1), LZMA_BUF_ERROR);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user