mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
Tests: test_vli: Remove an invalid test-assertion.
lzma_vli is unsigned so trying a signed value results in a compiler warning from -Wsign-conversion. (lzma_vli)-1 equals to LZMA_VLI_UNKNOWN anyway which is the next assertion.
This commit is contained in:
parent
154b73c5a1
commit
70c7555f64
1 changed files with 0 additions and 2 deletions
|
@ -52,8 +52,6 @@ static void
|
||||||
test_lzma_vli_size(void)
|
test_lzma_vli_size(void)
|
||||||
{
|
{
|
||||||
// First test invalid VLI values (should return 0)
|
// First test invalid VLI values (should return 0)
|
||||||
// VLI values are unsigned
|
|
||||||
assert_int_eq(lzma_vli_size(-1), 0);
|
|
||||||
// VLI UNKNOWN is an invalid VLI
|
// VLI UNKNOWN is an invalid VLI
|
||||||
assert_uint_eq(lzma_vli_size(LZMA_VLI_UNKNOWN), 0);
|
assert_uint_eq(lzma_vli_size(LZMA_VLI_UNKNOWN), 0);
|
||||||
// Loop over a few VLI values just over the maximum
|
// Loop over a few VLI values just over the maximum
|
||||||
|
|
Loading…
Reference in a new issue