X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fmemstat.cc;h=516ff7d91b5105305ed3e1132e067e6eead88ad7;hb=bf236d8b2a533d2a1380ad51140f61ae9a730971;hp=ae8679fb13d47bc30fd8f63336e9b7cdd8ede2ee;hpb=7773f76bd15be71f7d1a5579006b786584d3fe26;p=m6w6%2Flibmemcached diff --git a/tests/memstat.cc b/tests/memstat.cc index ae8679fb..516ff7d9 100644 --- a/tests/memstat.cc +++ b/tests/memstat.cc @@ -39,10 +39,10 @@ Test that we are cycling the servers we are creating during testing. */ -#include +#include "mem_config.h" -#include -#include +#include "libtest/test.hpp" +#include "libmemcached-1.0/memcached.h" using namespace libtest; @@ -50,7 +50,7 @@ using namespace libtest; #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif -static std::string executable("./clients/memstat"); +static std::string executable("./src/bin/memstat"); static test_return_t help_test(void *) { @@ -107,24 +107,24 @@ collection_st collection[] ={ static void *world_create(server_startup_st& servers, test_return_t& error) { - if (HAVE_MEMCACHED_BINARY == 0) + if (libtest::has_memcached() == false) { error= TEST_SKIPPED; return NULL; } - if (server_startup(servers, "memcached", libtest::default_port(), 0, NULL) == false) + if (server_startup(servers, "memcached", libtest::default_port(), NULL) == false) { - error= TEST_FAILURE; + error= TEST_SKIPPED; } return &servers; } -void get_world(Framework *world) +void get_world(libtest::Framework* world) { - world->collections= collection; - world->_create= world_create; + world->collections(collection); + world->create(world_create); }