X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Flibmemcached-1.0%2Fplus.cpp;h=1077ae72fd1a80b8ba98d803d400dfbb5d8dbf5e;hb=6b7d2bf0319e0bd48bd6aa4ad8c56a935f98b0d2;hp=145f979765a0612870fb00dcd97cb34d585cb3bd;hpb=d9db3f534bc38ea22e83e5529ff93aea4150ab19;p=m6w6%2Flibmemcached diff --git a/tests/libmemcached-1.0/plus.cpp b/tests/libmemcached-1.0/plus.cpp index 145f9797..1077ae72 100644 --- a/tests/libmemcached-1.0/plus.cpp +++ b/tests/libmemcached-1.0/plus.cpp @@ -35,13 +35,13 @@ * */ -#include +#include "mem_config.h" /* C++ interface test */ -#include -#include +#include "libmemcached-1.0/memcached.hpp" +#include "libtest/test.hpp" #include #include @@ -49,7 +49,9 @@ #include #include #include -#include +#if HAVE_UNISTD_H +# include +#endif #include #include @@ -181,6 +183,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));