]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: update hash unit test
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 27 Aug 2018 15:32:38 +0000 (17:32 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 28 Aug 2018 16:18:07 +0000 (18:18 +0200)
test/unit/hash.c

index 2275473e700b5736764e60ec5b9f5384188f9ad9..5cde039293b3f706ac0254cfc79a51e9fc3ee9de 100644 (file)
@@ -106,7 +106,7 @@ test_unit(void)
       if (j >= tests[i].length)
         TEST_CHECK(length == tests[i].length);
       else
-        TEST_CHECK(length == 0 || length == j || length == tests[i].length);
+        TEST_CHECK(length == j);
 
       TEST_CHECK(!memcmp(out, tests[i].out, length));
     }