projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Speed up host lookup for cases where we don't need to do it, or where it ends up...
[awesomized/libmemcached]
/
tests
/
cycle.cc
diff --git
a/tests/cycle.cc
b/tests/cycle.cc
index fe4ca1b37016180dc860924f7f37bd2dea28ee74..32df0da0883e74ec4813035f3dc758d1b06b3923 100644
(file)
--- a/
tests/cycle.cc
+++ b/
tests/cycle.cc
@@
-116,12
+116,18
@@
collection_st collection[] ={
{0, 0, 0, 0}
};
{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;
}
return &servers;
}
-void get_world(
Framework *
world)
+void get_world(
libtest::Framework*
world)
{
world->collections(collection);
world->create(world_create);
{
world->collections(collection);
world->create(world_create);