From: Michael Wallner Date: Mon, 6 Jan 2020 12:28:02 +0000 (+0100) Subject: tests/hashkit: fix tests doing nothing X-Git-Tag: pre_cmake~82 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=6b776071d6bb2dacf2c8f7ace3c052ce3528dd73;p=awesomized%2Flibmemcached tests/hashkit: fix tests doing nothing --- 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; }