aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2022-06-14 22:21:15 +0300
committerLasse Collin <lasse.collin@tukaani.org>2022-06-14 22:21:15 +0300
commit70c7555f6403553ee35539e869de0025592d8564 (patch)
tree52e4bbce42f71f90c19d62af33a5764e1aa2644e /tests
parentTests: test_vli: Add const where appropriate. (diff)
downloadxz-70c7555f6403553ee35539e869de0025592d8564.tar.xz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_vli.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/test_vli.c b/tests/test_vli.c
index e4cbf6a5..3cf027a8 100644
--- a/tests/test_vli.c
+++ b/tests/test_vli.c
@@ -52,8 +52,6 @@ static void
test_lzma_vli_size(void)
{
// 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
assert_uint_eq(lzma_vli_size(LZMA_VLI_UNKNOWN), 0);
// Loop over a few VLI values just over the maximum