mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 03:45:06 -05:00
test: update hash unit test
This commit is contained in:
@@ -106,7 +106,7 @@ test_unit(void)
|
|||||||
if (j >= tests[i].length)
|
if (j >= tests[i].length)
|
||||||
TEST_CHECK(length == tests[i].length);
|
TEST_CHECK(length == tests[i].length);
|
||||||
else
|
else
|
||||||
TEST_CHECK(length == 0 || length == j || length == tests[i].length);
|
TEST_CHECK(length == j);
|
||||||
|
|
||||||
TEST_CHECK(!memcmp(out, tests[i].out, length));
|
TEST_CHECK(!memcmp(out, tests[i].out, length));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user