From: Michael Wallner Date: Thu, 30 Jan 2020 11:17:17 +0000 (+0100) Subject: tests: honor EPIPE in kill(HUP) test X-Git-Tag: pre_cmake X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=e0165c033349179841bd1658f4068a9e4c075f66;p=m6w6%2Flibmemcached tests: honor EPIPE in kill(HUP) test --- diff --git a/tests/libmemcached-1.0/mem_functions.cc b/tests/libmemcached-1.0/mem_functions.cc index d799f4f6..9c6ab3de 100644 --- a/tests/libmemcached-1.0/mem_functions.cc +++ b/tests/libmemcached-1.0/mem_functions.cc @@ -5083,7 +5083,11 @@ test_return_t kill_HUP_TEST(memcached_st *original_memc) test_literal_param(__func__), // Keys test_literal_param(__func__), // Values 0, 0); - test_compare(MEMCACHED_CONNECTION_FAILURE, ret); + if (ret == MEMCACHED_ERRNO) { + test_compare(EPIPE, memcached_last_error_errno(memc)); + } else { + test_compare(MEMCACHED_CONNECTION_FAILURE, ret); + } memcached_free(memc);