X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Flibmemcached-1.0%2Fmem_functions.cc;h=090c90d94c097d8b5b27dae37747ec936973afe3;hb=400788eac8cccf9c30a616129a5dc2d67780790f;hp=9c6ab3deb2bbd1d3f762a53f706417f54f57428a;hpb=e0165c033349179841bd1658f4068a9e4c075f66;p=m6w6%2Flibmemcached diff --git a/tests/libmemcached-1.0/mem_functions.cc b/tests/libmemcached-1.0/mem_functions.cc index 9c6ab3de..090c90d9 100644 --- a/tests/libmemcached-1.0/mem_functions.cc +++ b/tests/libmemcached-1.0/mem_functions.cc @@ -35,8 +35,8 @@ * */ -#include -#include +#include "mem_config.h" +#include "libtest/test.hpp" #if defined(HAVE_LIBUUID) && HAVE_LIBUUID # include @@ -46,13 +46,13 @@ Test cases */ -#include +#include "libmemcached-1.0/memcached.h" #include "libmemcached/is.h" #include "libmemcached/server_instance.h" -#include +#include "libhashkit-1.0/hashkit.h" -#include +#include "libtest/memcached.hpp" #include #include @@ -66,17 +66,17 @@ #include -#include +#include "libtest/server.h" -#include "clients/generator.h" +#include "bin/generator.h" #define SMALL_STRING_LEN 1024 -#include +#include "libtest/test.hpp" using namespace libtest; -#include +#include "libmemcachedutil-1.0/util.h" #include "tests/hash_results.h" @@ -1880,8 +1880,8 @@ test_return_t block_add_regression(memcached_st *memc) Error << memcached_last_error_message(memc); return TEST_SKIPPED; } - test_compare(*memc, MEMCACHED_SUCCESS); - test_compare(rc, MEMCACHED_SUCCESS); + test_compare(MEMCACHED_SUCCESS,*memc); + test_compare(MEMCACHED_SUCCESS, rc); } return TEST_SUCCESS; @@ -4462,7 +4462,7 @@ test_return_t test_multiple_get_last_disconnect(memcached_st *) test_return_t test_verbosity(memcached_st *memc) { - memcached_verbosity(memc, 3); + test_compare(MEMCACHED_SUCCESS, memcached_verbosity(memc, 0)); return TEST_SUCCESS; } @@ -5060,7 +5060,7 @@ test_return_t regression_bug_(memcached_st *memc) return TEST_SUCCESS; } -test_return_t kill_HUP_TEST(memcached_st *original_memc) +test_return_t kill_TEST(memcached_st *original_memc) { memcached_st *memc= create_single_instance_memcached(original_memc, 0); test_true(memc); @@ -5077,7 +5077,7 @@ test_return_t kill_HUP_TEST(memcached_st *original_memc) test_literal_param(__func__), // Keys test_literal_param(__func__), // Values 0, 0)); - test_true_got(kill(pid, SIGHUP) == 0, strerror(errno)); + test_true_got(kill(pid, SIGTERM) == 0, strerror(errno)); memcached_return_t ret= memcached_set(memc, test_literal_param(__func__), // Keys