Fix for test cases to make sure memcached is around.
[m6w6/libmemcached] / tests / memslap.cc
index 6f990af498d9c81d7bfa79c5c9e878e334c482f2..57b7c3554ef3a00bd4019dc9cf8ae88c1cb20905 100644 (file)
@@ -167,7 +167,7 @@ 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;
@@ -186,7 +186,7 @@ static void *world_create(server_startup_st& servers, test_return_t& error)
 void get_world(Framework *world)
 {
   executable= "./clients/memslap";
-  world->collections= collection;
-  world->_create= world_create;
+  world->collections(collection);
+  world->create(world_create);
 }