projects
/
awesomized
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
59acef2
)
tests/hashkit: fix tests doing nothing
author
Michael Wallner
<mike@php.net>
Mon, 6 Jan 2020 12:28:02 +0000
(13:28 +0100)
committer
Michael Wallner
<mike@php.net>
Mon, 6 Jan 2020 12:45:01 +0000
(13:45 +0100)
tests/hashkit_functions.cc
patch
|
blob
|
history
diff --git
a/tests/hashkit_functions.cc
b/tests/hashkit_functions.cc
index 9def30259865b83aa80a4c65815e7ffab9601c51..3301c7a1e4b0d9a8eee794f155a9cdab58384fd4 100644
(file)
--- 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;
const char **ptr;
uint32_t *list;
- test_skip(true, libhashkit_has_algorithm(static_cast<hashkit_hash_algorithm_t>(algo)));
+ if (HASHKIT_HASH_CUSTOM == algo) {
+ continue;
+ }
+ if (!libhashkit_has_algorithm(static_cast<hashkit_hash_algorithm_t>(algo))) {
+ continue;
+ }
hashkit_return_t rc= hashkit_set_function(hashk, static_cast<hashkit_hash_algorithm_t>(algo));
hashkit_return_t rc= hashkit_set_function(hashk, static_cast<hashkit_hash_algorithm_t>(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++)
{
for (int algo= int(HASHKIT_HASH_DEFAULT); algo < int(HASHKIT_HASH_MAX); algo++)
{
- if (HASHKIT_HASH_CUSTOM)
+ if (HASHKIT_HASH_CUSTOM
== algo
)
{
continue;
}
{
continue;
}