(void)memcached_create(&memc);
memcached_free(&memc);
- return 0;
+ return TEST_SUCCESS;
}
static test_return server_list_null_test(memcached_st *ptr __attribute__((unused)))
server_list= memcached_server_list_append_with_weight(NULL, NULL, 0, 0, &rc);
assert(server_list == NULL);
- return 0;
+ return TEST_SUCCESS;
}
#define TEST_PORT_COUNT 7
memcached_free(local_memc);
- return 0;
+ return TEST_SUCCESS;
}
static test_return server_sort2_test(memcached_st *ptr __attribute__((unused)))
memcached_free(local_memc);
- return 0;
+ return TEST_SUCCESS;
}
static memcached_return server_display_unsort_function(memcached_st *ptr __attribute__((unused)), memcached_server_st *server, void *context)
memcached_free(local_memc);
- return 0;
+ return TEST_SUCCESS;
}
static test_return allocation_test(memcached_st *not_used __attribute__((unused)))
assert(memc);
memcached_free(memc);
- return 0;
+ return TEST_SUCCESS;
}
static test_return clone_test(memcached_st *memc)
memcached_free(memc_clone);
}
- return 0;
+ return TEST_SUCCESS;
}
static test_return userdata_test(memcached_st *memc)
rc= memcached_server_add_with_weight(memc, "localhost", 0, 0);
assert(rc == MEMCACHED_SUCCESS);
- return 0;
+ return TEST_SUCCESS;
}
static test_return error_test(memcached_st *memc)
assert(values[rc] == hash_val);
}
- return 0;
+ return TEST_SUCCESS;
}
static test_return set_test(memcached_st *memc)
(time_t)0, (uint32_t)0);
assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
- return 0;
+ return TEST_SUCCESS;
}
static test_return append_test(memcached_st *memc)
assert(rc == MEMCACHED_SUCCESS);
free(out_value);
- return 0;
+ return TEST_SUCCESS;
}
static test_return append_binary_test(memcached_st *memc)
}
free(value);
- return 0;
+ return TEST_SUCCESS;
}
static test_return cas2_test(memcached_st *memc)
memcached_result_free(&results_obj);
- return 0;
+ return TEST_SUCCESS;
}
static test_return cas_test(memcached_st *memc)
memcached_result_free(&results_obj);
- return 0;
+ return TEST_SUCCESS;
}
static test_return prepend_test(memcached_st *memc)
assert(rc == MEMCACHED_SUCCESS);
free(out_value);
- return 0;
+ return TEST_SUCCESS;
}
/*
else
assert(rc == MEMCACHED_NOTSTORED || rc == MEMCACHED_DATA_EXISTS);
- return 0;
+ return TEST_SUCCESS;
}
/*
for (x= 0; x < max; x++)
add_test(memc);
- return 0;
+ return TEST_SUCCESS;
}
static test_return replace_test(memcached_st *memc)
(time_t)0, (uint32_t)0);
assert(rc == MEMCACHED_SUCCESS);
- return 0;
+ return TEST_SUCCESS;
}
static test_return delete_test(memcached_st *memc)
rc= memcached_delete(memc, key, strlen(key), (time_t)0);
assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
- return 0;
+ return TEST_SUCCESS;
}
static test_return flush_test(memcached_st *memc)
rc= memcached_flush(memc, 0);
assert(rc == MEMCACHED_SUCCESS);
- return 0;
+ return TEST_SUCCESS;
}
static memcached_return server_function(memcached_st *ptr __attribute__((unused)),
callbacks[0]= server_function;
memcached_server_cursor(memc, callbacks, context, 1);
- return 0;
+ return TEST_SUCCESS;
}
static test_return bad_key_test(memcached_st *memc)
memcached_free(memc_clone);
- return 0;
+ return TEST_SUCCESS;
}
#define READ_THROUGH_VALUE "set for me"
assert(!strcmp(READ_THROUGH_VALUE, string));
free(string);
- return 0;
+ return TEST_SUCCESS;
}
static memcached_return delete_trigger(memcached_st *ptr __attribute__((unused)),
rc= memcached_callback_set(memc, MEMCACHED_CALLBACK_DELETE_TRIGGER, *(void**)&callback);
assert(rc == MEMCACHED_SUCCESS);
- return 0;
+ return TEST_SUCCESS;
}
static test_return get_test(memcached_st *memc)
assert(string_length == 0);
assert(!string);
- return 0;
+ return TEST_SUCCESS;
}
static test_return get_test2(memcached_st *memc)
free(string);
- return 0;
+ return TEST_SUCCESS;
}
static test_return set_test2(memcached_st *memc)
assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
}
- return 0;
+ return TEST_SUCCESS;
}
static test_return set_test3(memcached_st *memc)
free(value);
- return 0;
+ return TEST_SUCCESS;
}
static test_return get_test3(memcached_st *memc)
free(string);
free(value);
- return 0;
+ return TEST_SUCCESS;
}
static test_return get_test4(memcached_st *memc)
free(value);
- return 0;
+ return TEST_SUCCESS;
}
/*
memc->hosts[0].hostname,
memc->hosts[0].port);
- return 0;
+ return TEST_SUCCESS;
}
static test_return increment_test(memcached_st *memc)
assert(rc == MEMCACHED_SUCCESS);
assert(new_number == 2);
- return 0;
+ return TEST_SUCCESS;
}
static test_return increment_with_initial_test(memcached_st *memc)
assert(rc == MEMCACHED_SUCCESS);
assert(new_number == (initial + 1));
}
- return 0;
+ return TEST_SUCCESS;
}
static test_return decrement_test(memcached_st *memc)
assert(rc == MEMCACHED_SUCCESS);
assert(new_number == 1);
- return 0;
+ return TEST_SUCCESS;
}
static test_return decrement_with_initial_test(memcached_st *memc)
assert(rc == MEMCACHED_SUCCESS);
assert(new_number == (initial - 1));
}
- return 0;
+ return TEST_SUCCESS;
}
static test_return quit_test(memcached_st *memc)
(time_t)50, (uint32_t)9);
assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
- return 0;
+ return TEST_SUCCESS;
}
static test_return mget_result_test(memcached_st *memc)
memcached_result_free(&results_obj);
- return 0;
+ return TEST_SUCCESS;
}
static test_return mget_result_alloc_test(memcached_st *memc)
x++;
}
- return 0;
+ return TEST_SUCCESS;
}
/* Count the results */
assert(counter == 3);
- return 0;
+ return TEST_SUCCESS;
}
static test_return mget_test(memcached_st *memc)
x++;
}
- return 0;
+ return TEST_SUCCESS;
}
static test_return get_stats_keys(memcached_st *memc)
free(list);
- return 0;
+ return TEST_SUCCESS;
}
static test_return version_string_test(memcached_st *memc __attribute__((unused)))
assert(!strcmp(version_string, LIBMEMCACHED_VERSION_STRING));
- return 0;
+ return TEST_SUCCESS;
}
static test_return get_stats(memcached_st *memc)
memcached_stat_free(NULL, memc_stat);
- return 0;
+ return TEST_SUCCESS;
}
static test_return add_host_test(memcached_st *memc)
memcached_server_list_free(servers);
- return 0;
+ return TEST_SUCCESS;
}
static memcached_return clone_test_callback(memcached_st *parent __attribute__((unused)), memcached_st *memc_clone __attribute__((unused)))
assert(temp_function == cleanup_cb_ptr);
}
- return 0;
+ return TEST_SUCCESS;
}
/* We don't test the behavior itself, we test the switches */
value= memcached_behavior_get(memc, MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS);
memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS, value + 1);
assert((value + 1) == memcached_behavior_get(memc, MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS));
- return 0;
+ return TEST_SUCCESS;
}
/* Test case provided by Cal Haldenbrand */
assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
}
- return 0;
+ return TEST_SUCCESS;
}
/* Test case provided by Cal Haldenbrand */
free(getval);
}
- return 0;
+ return TEST_SUCCESS;
}
/* Do a large mget() over all the keys we think exist */
free(keys[x]);
free(keys);
- return 0;
+ return TEST_SUCCESS;
}
/* Make sure we behave properly if server list has no values */
x++;
}
- return 0;
+ return TEST_SUCCESS;
}
#define VALUE_SIZE_BUG5 1048064
assert(count == 4);
}
- return 0;
+ return TEST_SUCCESS;
}
static test_return user_supplied_bug6(memcached_st *memc)
}
}
- return 0;
+ return TEST_SUCCESS;
}
static test_return user_supplied_bug8(memcached_st *memc __attribute__((unused)))
memcached_free(mine);
memcached_free(memc_clone);
- return 0;
+ return TEST_SUCCESS;
}
/* Test flag store/retrieve */
free(value);
- return 0;
+ return TEST_SUCCESS;
}
static test_return user_supplied_bug9(memcached_st *memc)
}
assert(count == 3);
- return 0;
+ return TEST_SUCCESS;
}
/* We are testing with aggressive timeout to get failures */
free(value);
memcached_free(mclone);
- return 0;
+ return TEST_SUCCESS;
}
/*
free(value);
memcached_free(mclone);
- return 0;
+ return TEST_SUCCESS;
}
/*
assert(number_value == 2);
assert(rc == MEMCACHED_SUCCESS);
- return 0;
+ return TEST_SUCCESS;
}
/*
free(overflow);
}
- return 0;
+ return TEST_SUCCESS;
}
free(value);
- return 0;
+ return TEST_SUCCESS;
}
/*
assert(flags == 0);
}
- return 0;
+ return TEST_SUCCESS;
}
/* Check the return sizes on FLAGS to make sure it stores 32bit unsigned values correctly */
assert(length == 0);
assert(flags == UINT32_MAX);
- return 0;
+ return TEST_SUCCESS;
}
#ifndef __sun
assert(memcmp(value, value2, length)==0);
free(value2);
- return 0;
+ return TEST_SUCCESS;
}
#endif
memcached_free(m);
- return 0;
+ return TEST_SUCCESS;
}
/* CAS test from Andei */
memcached_result_free(result);
- return 0;
+ return TEST_SUCCESS;
}
#include "ketama_test_cases.h"
memcached_server_list_free(server_pool);
memcached_free(memc);
- return 0;
+ return TEST_SUCCESS;
}
static test_return auto_eject_hosts(memcached_st *trash)
assert(result_ptr);
memcached_result_free(&result);
- return 0;
+ return TEST_SUCCESS;
}
static test_return result_alloc(memcached_st *memc)
assert(result);
memcached_result_free(result);
- return 0;
+ return TEST_SUCCESS;
}
static test_return string_static_null(memcached_st *memc)
assert(string_ptr);
memcached_string_free(&string);
- return 0;
+ return TEST_SUCCESS;
}
static test_return string_alloc_null(memcached_st *memc)
assert(string);
memcached_string_free(string);
- return 0;
+ return TEST_SUCCESS;
}
static test_return string_alloc_with_size(memcached_st *memc)
assert(string);
memcached_string_free(string);
- return 0;
+ return TEST_SUCCESS;
}
static test_return string_alloc_with_size_toobig(memcached_st *memc)
string= memcached_string_create(memc, NULL, SIZE_MAX);
assert(string == NULL);
- return 0;
+ return TEST_SUCCESS;
}
static test_return string_alloc_append(memcached_st *memc)
}
memcached_string_free(string);
- return 0;
+ return TEST_SUCCESS;
}
static test_return string_alloc_append_toobig(memcached_st *memc)
assert(rc == MEMCACHED_MEMORY_ALLOCATION_FAILURE);
memcached_string_free(string);
- return 0;
+ return TEST_SUCCESS;
}
static test_return cleanup_pairs(memcached_st *memc __attribute__((unused)))
{
pairs_free(global_pairs);
- return 0;
+ return TEST_SUCCESS;
}
static test_return generate_pairs(memcached_st *memc __attribute__((unused)))
global_keys_length[x]= global_pairs[x].key_length;
}
- return 0;
+ return TEST_SUCCESS;
}
static test_return generate_large_pairs(memcached_st *memc __attribute__((unused)))
global_keys_length[x]= global_pairs[x].key_length;
}
- return 0;
+ return TEST_SUCCESS;
}
static test_return generate_data(memcached_st *memc)
{
execute_set(memc, global_pairs, global_count);
- return 0;
+ return TEST_SUCCESS;
}
static test_return generate_data_with_stats(memcached_st *memc)
memcached_stat_free(NULL, stat_p);
- return 0;
+ return TEST_SUCCESS;
}
static test_return generate_buffer_data(memcached_st *memc)
{
memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_BUFFER_REQUESTS, latch);
generate_data(memc);
- return 0;
+ return TEST_SUCCESS;
}
static test_return get_read_count(memcached_st *memc)
memcached_free(memc_clone);
- return 0;
+ return TEST_SUCCESS;
}
static test_return get_read(memcached_st *memc)
}
}
- return 0;
+ return TEST_SUCCESS;
}
static test_return mget_read(memcached_st *memc)
}
}
- return 0;
+ return TEST_SUCCESS;
}
static test_return mget_read_result(memcached_st *memc)
memcached_result_free(&results_obj);
}
- return 0;
+ return TEST_SUCCESS;
}
static test_return mget_read_function(memcached_st *memc)
counter= 0;
rc= memcached_fetch_execute(memc, callbacks, (void *)&counter, 1);
- return 0;
+ return TEST_SUCCESS;
}
static test_return delete_generate(memcached_st *memc)
(void)memcached_delete(memc, global_keys[x], global_keys_length[x], (time_t)0);
}
- return 0;
+ return TEST_SUCCESS;
}
static test_return delete_buffer_generate(memcached_st *memc)
(void)memcached_delete(memc, global_keys[x], global_keys_length[x], (time_t)0);
}
- return 0;
+ return TEST_SUCCESS;
}
static test_return add_host_test1(memcached_st *memc)
memcached_server_list_free(servers);
- return 0;
+ return TEST_SUCCESS;
}
static memcached_return pre_nonblock(memcached_st *memc)