summaryrefslogtreecommitdiff
path: root/tests/vb2_sha_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/vb2_sha_tests.c')
-rw-r--r--tests/vb2_sha_tests.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/vb2_sha_tests.c b/tests/vb2_sha_tests.c
index 94236355..54bca66f 100644
--- a/tests/vb2_sha_tests.c
+++ b/tests/vb2_sha_tests.c
@@ -181,6 +181,9 @@ static void hash_algorithm_name_tests(void)
TEST_STR_NEQ(vb2_get_hash_algorithm_name(alg),
VB2_INVALID_ALG_NAME, test_name);
}
+
+ TEST_STR_EQ(vb2_get_hash_algorithm_name(VB2_HASH_INVALID),
+ VB2_INVALID_ALG_NAME, "hash alg name invalid");
}
int main(int argc, char *argv[])