From 87056a211fe94579aa414c7b6459c9aa842518e9 Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Tue, 6 Aug 2013 06:40:53 -0400 Subject: [PATCH] Try to find error in string --- tests/libmemcached-1.0/plus.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/libmemcached-1.0/plus.cpp b/tests/libmemcached-1.0/plus.cpp index 145f9797..5897dcb7 100644 --- a/tests/libmemcached-1.0/plus.cpp +++ b/tests/libmemcached-1.0/plus.cpp @@ -181,6 +181,13 @@ static test_return_t mget_test(memcached_st *original) vector return_value; /* We need to empty the server before we continue the test */ + bool flush_res= memc.flush(); + if (flush_res == false) + { + std::string error_string; + ASSERT_TRUE(memc.error(error_string)); + Error << error_string; + } test_true(memc.flush()); test_true(memc.mget(keys)); -- 2.30.2