static void *world_create(server_startup_st& servers, test_return_t& error)
{
+ if (access(executable.c_str(), X_OK) != 0)
+ {
+ error= TEST_SKIPPED;
+ return NULL;
+ }
+
if (HAVE_MEMCACHED_LIGHT_BINARY == 0)
{
error= TEST_SKIPPED;
if (server_startup(servers, "memcached-light", libtest::default_port(), 0, NULL) == 0)
{
error= TEST_FAILURE;
+ return NULL;
}
}
-void get_world(Framework *world)
+void get_world(libtest::Framework* world)
{
- world->_create= world_create;
- world->_destroy= world_destroy;
- world->collections= collection;
+ world->create(world_create);
+ world->destroy(world_destroy);
+ world->collections(collection);
world->set_runner(new MemcachedLightRunner);
}