From 6b776071d6bb2dacf2c8f7ace3c052ce3528dd73 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Mon, 6 Jan 2020 13:28:02 +0100 Subject: [PATCH] tests/hashkit: fix tests doing nothing --- tests/hashkit_functions.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/hashkit_functions.cc b/tests/hashkit_functions.cc index 9def3025..3301c7a1 100644 --- a/tests/hashkit_functions.cc +++ b/tests/hashkit_functions.cc @@ -347,7 +347,12 @@ static test_return_t hashkit_set_function_test(hashkit_st *hashk) const char **ptr; uint32_t *list; - test_skip(true, libhashkit_has_algorithm(static_cast(algo))); + if (HASHKIT_HASH_CUSTOM == algo) { + continue; + } + if (!libhashkit_has_algorithm(static_cast(algo))) { + continue; + } hashkit_return_t rc= hashkit_set_function(hashk, static_cast(algo)); @@ -473,7 +478,7 @@ static test_return_t hashkit_get_function_test(hashkit_st *hashk) for (int algo= int(HASHKIT_HASH_DEFAULT); algo < int(HASHKIT_HASH_MAX); algo++) { - if (HASHKIT_HASH_CUSTOM) + if (HASHKIT_HASH_CUSTOM == algo) { continue; } -- 2.30.2