From 5239f20c5abf57378b343e6a0cbe02e1f0910908 Mon Sep 17 00:00:00 2001 From: Trond Norbye Date: Mon, 12 Oct 2009 12:28:56 +0200 Subject: [PATCH] Fixed compile failure due to wrong return value from function to detect if a testcase should be skipped or not --- tests/function.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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); -- 2.30.2