projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Fixed bug where we might not see the right return type for the distribution type.
[m6w6/libmemcached]
/
tests
/
cycle.cc
diff --git
a/tests/cycle.cc
b/tests/cycle.cc
index 788d7e67bf88bd7ac8eb9d09d89cbc1aa776a8c7..679473eadd02c823b19dbc98502e5dcddfddee0a 100644
(file)
--- a/
tests/cycle.cc
+++ b/
tests/cycle.cc
@@
-116,14
+116,20
@@
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;
}
void get_world(Framework *world)
{
return &servers;
}
void get_world(Framework *world)
{
- world->collections
= collection
;
- world->
_create= world_create
;
+ world->collections
(collection)
;
+ world->
create(world_create)
;
}
}