From: Brian Aker Date: Sun, 23 Dec 2012 19:35:03 +0000 (-0500) Subject: Update to printout where things are going wrong. X-Git-Tag: 1.0.16~24^2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=9065046a3fd404f72fb090cb0da65cfa8443032f;p=m6w6%2Flibmemcached Update to printout where things are going wrong. --- diff --git a/tests/libmemcached-1.0/mem_functions.cc b/tests/libmemcached-1.0/mem_functions.cc index 068d5197..046e543d 100644 --- a/tests/libmemcached-1.0/mem_functions.cc +++ b/tests/libmemcached-1.0/mem_functions.cc @@ -4949,11 +4949,12 @@ test_return_t kill_HUP_TEST(memcached_st *original_memc) 0, 0)); test_true_got(kill(pid, SIGHUP) == 0, strerror(errno)); - test_compare(MEMCACHED_CONNECTION_FAILURE, - memcached_set(memc, - test_literal_param(__func__), // Keys - test_literal_param(__func__), // Values - 0, 0)); + memcached_return_t ret= memcached_set(memc, + test_literal_param(__func__), // Keys + test_literal_param(__func__), // Values + 0, 0); + Error << memcached_last_error_message(memc); + test_compare(MEMCACHED_CONNECTION_FAILURE, ret); memcached_free(memc);