X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fmemflush.cc;h=06b38ea5219e2332e87da19ce2d35ff9a6eb8517;hb=5bb6f975322d3da0caf082b8d890132194d0a4ea;hp=80a42453068e8fb35092b97c55f41fd1488c4d16;hpb=23bbe3972dada1e21493437ba64be129e86b59fc;p=awesomized%2Flibmemcached diff --git a/tests/memflush.cc b/tests/memflush.cc index 80a42453..06b38ea5 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 "mem_config.h" -#include -#include +#include "libtest/test.hpp" +#include "libmemcached-1.0/memcached.h" using namespace libtest; @@ -95,24 +95,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) == 0) + 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"; + executable= "./src/bin/memflush"; world->collections(collection); world->create(world_create); }