X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fcycle.cc;h=32df0da0883e74ec4813035f3dc758d1b06b3923;hb=220ac91be6530bd992a7d2bde4310bb523075143;hp=fe4ca1b37016180dc860924f7f37bd2dea28ee74;hpb=23bbe3972dada1e21493437ba64be129e86b59fc;p=awesomized%2Flibmemcached diff --git a/tests/cycle.cc b/tests/cycle.cc index fe4ca1b3..32df0da0 100644 --- a/tests/cycle.cc +++ b/tests/cycle.cc @@ -116,12 +116,18 @@ collection_st collection[] ={ {0, 0, 0, 0} }; -static void *world_create(server_startup_st& servers, test_return_t& ) +static void *world_create(server_startup_st& servers, test_return_t& error) { + if (libtest::has_memcached() == false) + { + error= TEST_SKIPPED; + return NULL; + } + return &servers; } -void get_world(Framework *world) +void get_world(libtest::Framework* world) { world->collections(collection); world->create(world_create);