From: Brian Aker Date: Mon, 30 Jul 2012 04:51:04 +0000 (-0700) Subject: Fix for lp:1021819 (test case, to confirm earlier fix) X-Git-Tag: 1.0.10^2~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=27b6f5475d5c379b40e2cbef91571f7038f24f3d;p=awesomized%2Flibmemcached Fix for lp:1021819 (test case, to confirm earlier fix) --- diff --git a/ChangeLog b/ChangeLog index 4319c0b0..7005b567 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,4 @@ -1.0.10 Sat Jul 28 22:32:14 PDT 2012 +1.0.10 Sun Jul 29 21:50:15 PDT 2012 * --disable-assert has been removed from configure, and --enable-assert has been added in its place. * Compiling fixes for Clang on OSX Mountain Lion. diff --git a/tests/libmemcached-1.0/all_tests.h b/tests/libmemcached-1.0/all_tests.h index a3a8dcfc..25fda094 100644 --- a/tests/libmemcached-1.0/all_tests.h +++ b/tests/libmemcached-1.0/all_tests.h @@ -277,6 +277,7 @@ test_st regression_tests[]= { {"lp:996813", true, (test_callback_fn*)regression_996813_TEST }, {"lp:994772", true, (test_callback_fn*)regression_994772_TEST }, {"lp:1009493", true, (test_callback_fn*)regression_1009493_TEST }, + {"lp:1021819", true, (test_callback_fn*)regression_1021819_TEST }, {0, false, (test_callback_fn*)0} }; diff --git a/tests/libmemcached-1.0/mem_functions.cc b/tests/libmemcached-1.0/mem_functions.cc index 9fdf6bf3..07603cb4 100644 --- a/tests/libmemcached-1.0/mem_functions.cc +++ b/tests/libmemcached-1.0/mem_functions.cc @@ -4474,6 +4474,26 @@ test_return_t regression_bug_490486(memcached_st *original_memc) return TEST_SUCCESS; } +test_return_t regression_1021819_TEST(memcached_st *original) +{ + memcached_st *memc= memcached_clone(NULL, original); + test_true(memc); + + test_compare(memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_SND_TIMEOUT, 2000000), MEMCACHED_SUCCESS); + + memcached_return_t rc; + + memcached_get(memc, + test_literal_param(__func__), + NULL, NULL, &rc); + + test_compare(rc, MEMCACHED_NOTFOUND); + + memcached_free(memc); + + return TEST_SUCCESS; +} + test_return_t regression_bug_583031(memcached_st *) { memcached_st *memc= memcached_create(NULL); diff --git a/tests/libmemcached-1.0/mem_functions.h b/tests/libmemcached-1.0/mem_functions.h index 571c1607..5d433aa5 100644 --- a/tests/libmemcached-1.0/mem_functions.h +++ b/tests/libmemcached-1.0/mem_functions.h @@ -121,20 +121,21 @@ test_return_t libmemcached_util_ping_TEST(memcached_st*); test_return_t prepend_test(memcached_st *memc); test_return_t quit_test(memcached_st *memc); test_return_t read_through(memcached_st *memc); -test_return_t regression_bug_(memcached_st *memc); -test_return_t regression_bug_421108(memcached_st *memc); -test_return_t regression_bug_434484(memcached_st *memc); -test_return_t regression_bug_434843(memcached_st *original_memc); -test_return_t regression_bug_434843_buffered(memcached_st *memc); -test_return_t regression_bug_442914(memcached_st *memc); -test_return_t regression_bug_447342(memcached_st *memc); -test_return_t regression_bug_463297(memcached_st *memc); -test_return_t regression_bug_490486(memcached_st *original_memc); -test_return_t regression_bug_490520(memcached_st *memc); -test_return_t regression_bug_581030(memcached_st *); -test_return_t regression_bug_583031(memcached_st *); -test_return_t regression_bug_655423(memcached_st *memc); -test_return_t regression_bug_854604(memcached_st *); +test_return_t regression_bug_(memcached_st*); +test_return_t regression_bug_421108(memcached_st*); +test_return_t regression_bug_434484(memcached_st*); +test_return_t regression_bug_434843(memcached_st*); +test_return_t regression_bug_434843_buffered(memcached_st*); +test_return_t regression_bug_442914(memcached_st*); +test_return_t regression_bug_447342(memcached_st*); +test_return_t regression_bug_463297(memcached_st*); +test_return_t regression_bug_490486(memcached_st*); +test_return_t regression_bug_490520(memcached_st*); +test_return_t regression_bug_581030(memcached_st*); +test_return_t regression_bug_583031(memcached_st*); +test_return_t regression_1021819_TEST(memcached_st*); +test_return_t regression_bug_655423(memcached_st*); +test_return_t regression_bug_854604(memcached_st*); test_return_t replace_test(memcached_st *memc); test_return_t result_alloc(memcached_st *memc); test_return_t result_static(memcached_st *memc);