From e0165c033349179841bd1658f4068a9e4c075f66 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 30 Jan 2020 12:17:17 +0100 Subject: [PATCH] tests: honor EPIPE in kill(HUP) test --- tests/libmemcached-1.0/mem_functions.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.30.2