AC_CHECK_FUNCS_ONCE([getline])
-
PANDORA_HAVE_LIBEVENT
PANDORA_REQUIRE_PTHREAD
PANDORA_CXX_DEMANGLE
PANDORA_HAVE_LIBINNODB
PANDORA_PRINT_CALLSTACK
+AC_CHECK_HEADERS([atomic.h])
+AS_IF([test "x$ac_cv_header_atomic_h" = "xyes"],
+ AC_CHECK_FUNCS(atomic_add_64)
+ AC_CHECK_FUNCS(atomic_add_32)
+ AS_IF([test "x$ac_cv_func_atomic_add_64" = "xyes" -a "x$ac_cv_func_atomic_add_32" = "xyes"],
+ AC_DEFINE([USE_ATOMIC_H],
+ [1],
+ [Define to true if you want to use functions from atomic.h])))
+
AC_CONFIG_FILES([
Makefile
clients/Makefile
rc= memcached_set(memc, keys[x], len[x], "1", 1, 0, 0);
test_truth(rc == MEMCACHED_SUCCESS);
}
-
+
memcached_quit(memc);
for (int x=0; x< 7; ++x) {
uint32_t hash_val;
hash_val= memcached_generate_hash_value(*ptr, strlen(*ptr), MEMCACHED_HASH_CRC);
- assert(crc_values[x] == hash_val);
+ test_truth(crc_values[x] == hash_val);
}
return TEST_SUCCESS;
uint32_t hash_val;
hash_val= memcached_generate_hash_value(*ptr, strlen(*ptr), MEMCACHED_HASH_FNV1_64);
- assert(fnv1_64_values[x] == hash_val);
+ test_truth(fnv1_64_values[x] == hash_val);
}
return TEST_SUCCESS;
uint32_t hash_val;
hash_val= memcached_generate_hash_value(*ptr, strlen(*ptr), MEMCACHED_HASH_FNV1A_64);
- assert(fnv1a_64_values[x] == hash_val);
+ test_truth(fnv1a_64_values[x] == hash_val);
}
return TEST_SUCCESS;
uint32_t hash_val;
hash_val= memcached_generate_hash_value(*ptr, strlen(*ptr), MEMCACHED_HASH_FNV1_32);
- assert(fnv1_32_values[x] == hash_val);
+ test_truth(fnv1_32_values[x] == hash_val);
}
return TEST_SUCCESS;
uint32_t hash_val;
hash_val= memcached_generate_hash_value(*ptr, strlen(*ptr), MEMCACHED_HASH_FNV1A_32);
- assert(fnv1a_32_values[x] == hash_val);
+ test_truth(fnv1a_32_values[x] == hash_val);
}
return TEST_SUCCESS;
uint32_t hash_val;
hash_val= memcached_generate_hash_value(*ptr, strlen(*ptr), MEMCACHED_HASH_HSIEH);
- assert(hsieh_values[x] == hash_val);
+ test_truth(hsieh_values[x] == hash_val);
}
return TEST_SUCCESS;
static test_return_t murmur_run (memcached_st *memc __attribute__((unused)))
{
+#ifdef __sparc
+ return TEST_SKIPPED;
+#else
uint32_t x;
const char **ptr;
uint32_t hash_val;
hash_val= memcached_generate_hash_value(*ptr, strlen(*ptr), MEMCACHED_HASH_MURMUR);
- assert(murmur_values[x] == hash_val);
+ test_truth(murmur_values[x] == hash_val);
}
return TEST_SUCCESS;
+#endif
}
static test_return_t jenkins_run (memcached_st *memc __attribute__((unused)))
uint32_t hash_val;
hash_val= memcached_generate_hash_value(*ptr, strlen(*ptr), MEMCACHED_HASH_JENKINS);
- assert(jenkins_values[x] == hash_val);
+ test_truth(jenkins_values[x] == hash_val);
}
return TEST_SUCCESS;