X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fmemtouch.cc;h=5617fa2895683fc5d11143ad2f320af07c08f94f;hb=2b58ac3aa8add64352a41c7f4f9fc88a0f4f2919;hp=fa65e8b413ff85c25437eb5efbc249cda6435fe2;hpb=e268471e4642c16281dc65b2f0ad9b897786c0b4;p=awesomized%2Flibmemcached diff --git a/tests/memtouch.cc b/tests/memtouch.cc index fa65e8b4..5617fa28 100644 --- a/tests/memtouch.cc +++ b/tests/memtouch.cc @@ -39,11 +39,11 @@ Test that we are cycling the servers we are creating during testing. */ -#include +#include #include -#include -#include +#include +#include using namespace libtest; @@ -139,25 +139,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) { executable= "./clients/memtouch"; - world->collections= collection; - world->_create= world_create; + world->collections(collection); + world->create(world_create); } -