test: fix hash unit test for NSS

Some hash functions in the freebl3 library ignore the length of the
output buffer and always return the length of the digest.
This commit is contained in:
Miroslav Lichvar 2018-03-19 13:07:58 +01:00
parent 47921c7c0c
commit 63f0234748

View 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);
TEST_CHECK(length == 0 || length == j || length == tests[i].length);
TEST_CHECK(!memcmp(out, tests[i].out, length));
}