X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fmemflush.cc;h=c197b4903956c8ada4969e9c0229e68145af0c3d;hb=refs%2Ftags%2Fpre_cmake;hp=5339f4e26845017bdebea9c12f997e79d8f65c0c;hpb=a18c65b0ee1a4721a4f1298f52f8b3446cf7c600;p=awesomized%2Flibmemcached diff --git a/tests/memflush.cc b/tests/memflush.cc index 5339f4e2..c197b490 100644 --- a/tests/memflush.cc +++ b/tests/memflush.cc @@ -39,10 +39,10 @@ Test that we are cycling the servers we are creating during testing. */ -#include +#include #include -#include +#include using namespace libtest; @@ -95,26 +95,25 @@ 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; } - const char *argv[1]= { "memflush" }; - if (not server_startup(servers, "memcached", libtest::get_free_port(), 1, argv)) + if (server_startup(servers, "memcached", libtest::default_port(), NULL) == 0) { - error= TEST_FAILURE; + error= TEST_SKIPPED; } return &servers; } -void get_world(Framework *world) +void get_world(libtest::Framework* world) { executable= "./clients/memflush"; - world->collections= collection; - world->_create= world_create; + world->collections(collection); + world->create(world_create); }