X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fmemtouch.cc;h=5617fa2895683fc5d11143ad2f320af07c08f94f;hb=53418c8467e0e0845e8f9875fccf05a6cc5a4684;hp=c44e6a08dcca5ac67d06eb34ccc8032b6cd097e5;hpb=23bbe3972dada1e21493437ba64be129e86b59fc;p=m6w6%2Flibmemcached diff --git a/tests/memtouch.cc b/tests/memtouch.cc index c44e6a08..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); } -