From 9537577edf8375a40bd1bfdd1f1589b1bcb94a3b Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Sat, 14 Apr 2012 23:54:11 -0700 Subject: [PATCH] Remove dead tests. --- tests/libmemcached-1.0/all_tests.h | 3 --- tests/libmemcached-1.0/setup_and_teardowns.cc | 24 ------------------- 2 files changed, 27 deletions(-) diff --git a/tests/libmemcached-1.0/all_tests.h b/tests/libmemcached-1.0/all_tests.h index 4dab69ff..e6ce65d8 100644 --- a/tests/libmemcached-1.0/all_tests.h +++ b/tests/libmemcached-1.0/all_tests.h @@ -475,9 +475,6 @@ collection_st collection[] ={ {"generate_murmur", (test_callback_fn*)pre_murmur, 0, generate_tests}, {"generate_jenkins", (test_callback_fn*)pre_jenkins, 0, generate_tests}, {"generate_nonblock", (test_callback_fn*)pre_nonblock, 0, generate_tests}, - // Too slow - {"generate_corked", (test_callback_fn*)pre_cork, 0, generate_tests}, - {"generate_corked_and_nonblock", (test_callback_fn*)pre_cork_and_nonblock, 0, generate_tests}, {"consistent_not", 0, 0, consistent_tests}, {"consistent_ketama", (test_callback_fn*)pre_behavior_ketama, 0, consistent_tests}, {"consistent_ketama_weighted", (test_callback_fn*)pre_behavior_ketama_weighted, 0, consistent_weighted_tests}, diff --git a/tests/libmemcached-1.0/setup_and_teardowns.cc b/tests/libmemcached-1.0/setup_and_teardowns.cc index 093be490..5f34f666 100644 --- a/tests/libmemcached-1.0/setup_and_teardowns.cc +++ b/tests/libmemcached-1.0/setup_and_teardowns.cc @@ -218,30 +218,6 @@ test_return_t pre_nonblock(memcached_st *memc) return TEST_SUCCESS; } -test_return_t pre_cork(memcached_st *memc) -{ -#ifdef __APPLE__ - return TEST_SKIPPED; -#endif - bool set= true; - if (memcached_success(memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_CORK, set))) - return TEST_SUCCESS; - - return TEST_SKIPPED; -} - -test_return_t pre_cork_and_nonblock(memcached_st *memc) -{ -#ifdef __APPLE__ - return TEST_SKIPPED; -#endif - test_return_t test_rc; - if ((test_rc= pre_cork(memc)) != TEST_SUCCESS) - return test_rc; - - return pre_nonblock(memc); -} - test_return_t pre_nonblock_binary(memcached_st *memc) { memcached_st *memc_clone= memcached_clone(NULL, memc); -- 2.30.2