From: Date: Wed, 27 Feb 2008 03:20:19 +0000 (-0800) Subject: Extending tests. X-Git-Tag: 0.20~1^2~55^2~1^2~4 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=cb6733efbbd39a7cb80eff53c09a05775f4570dc;p=awesomized%2Flibmemcached Extending tests. --- diff --git a/tests/function.c b/tests/function.c index 6bbaa40c..69ae84b1 100644 --- a/tests/function.c +++ b/tests/function.c @@ -2310,6 +2310,14 @@ memcached_return enable_consistent(memcached_st *memc) return MEMCACHED_SUCCESS; } +memcached_return enable_replication(memcached_st *memc) +{ + uint64_t value; + value= 2; + enable_consistent(memc); + memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_REPLICAS, &value); +} + memcached_return enable_cas(memcached_st *memc) { unsigned int set= 1; @@ -2520,6 +2528,7 @@ collection_st collection[] ={ {"poll_timeout", poll_timeout, 0, tests}, {"gets", enable_cas, 0, tests}, {"consistent", enable_consistent, 0, tests}, + {"replication", enable_consistent, 0, tests}, {"memory_allocators", set_memory_alloc, 0, tests}, // {"udp", pre_udp, 0, tests}, {"version_1_2_3", check_for_1_2_3, 0, version_1_2_3},