From: Trond Norbye Date: Mon, 12 Oct 2009 10:28:56 +0000 (+0200) Subject: Fixed compile failure due to wrong return value from function to detect if a testcase... X-Git-Tag: 0.34~5^2~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=5239f20c5abf57378b343e6a0cbe02e1f0910908;p=awesomized%2Flibmemcached Fixed compile failure due to wrong return value from function to detect if a testcase should be skipped or not --- diff --git a/tests/function.c b/tests/function.c index 914e17f2..aadd2dec 100644 --- a/tests/function.c +++ b/tests/function.c @@ -3217,15 +3217,14 @@ static memcached_return pre_binary(memcached_st *memc) static memcached_return pre_replication(memcached_st *memc) { - memcached_return rc= MEMCACHED_FAILURE; - if (pre_binary(memc) != MEMCACHED_SUCCESS) - return TEST_SKIPPED; + return MEMCACHED_FAILURE; /* * Make sure that we store the item on all servers * (master + replicas == number of servers) - */ + */ + memcached_return rc; rc= memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS, memc->number_of_hosts - 1); assert(rc == MEMCACHED_SUCCESS);