From ac00b21c606ebea4c73f11332ac66a584a24228c Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Mon, 4 Apr 2011 19:31:23 -0700 Subject: [PATCH 1/1] Extend test to report answer. --- tests/mem_functions.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/mem_functions.c b/tests/mem_functions.c index 600ffb8f..9a5c053d 100644 --- a/tests/mem_functions.c +++ b/tests/mem_functions.c @@ -231,7 +231,12 @@ static memcached_return_t server_display_unsort_function(const memcached_st *ptr uint32_t x= *((uint32_t *)(context)); (void)ptr; - assert(test_ports[x] == server->port); + if (! (test_ports[x] == server->port)) + { + fprintf(stderr, "%lu -> %lu\n", (unsigned long)test_ports[x], (unsigned long)server->port); + return MEMCACHED_FAILURE; + } + *((uint32_t *)(context))= ++x; return MEMCACHED_SUCCESS; -- 2.30.2