mirror of https://git.tukaani.org/xz.git
Tests: test_index: Test lzma_index_buffer_encode() with empty output buf
(cherry picked from commit 2c970debdb
)
This commit is contained in:
parent
780ddb8173
commit
f39a7ba7f9
|
@ -1625,6 +1625,9 @@ test_lzma_index_buffer_encode(void)
|
|||
assert_lzma_ret(lzma_index_buffer_encode(idx, buffer, &out_pos,
|
||||
0), LZMA_PROG_ERROR);
|
||||
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,
|
||||
1), LZMA_BUF_ERROR);
|
||||
|
||||
|
|
Loading…
Reference in New Issue