X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Flibmemcached-1.0%2Fsetup_and_teardowns.cc;h=093be4906f2b3998c7ce211575dfbbda442939b7;hb=20671681ff4e13ed84be72b699f71a90337245cd;hp=84f57abe2cc85b0c44218fe5d3353a314a4df8e1;hpb=1857b8b7b9c015f917a05e2e1f75c31253855c90;p=awesomized%2Flibmemcached diff --git a/tests/libmemcached-1.0/setup_and_teardowns.cc b/tests/libmemcached-1.0/setup_and_teardowns.cc index 84f57abe..093be490 100644 --- a/tests/libmemcached-1.0/setup_and_teardowns.cc +++ b/tests/libmemcached-1.0/setup_and_teardowns.cc @@ -44,6 +44,18 @@ #include +using namespace libtest; + +memcached_return_t return_value_based_on_buffering(memcached_st *memc) +{ + if (memcached_behavior_get(memc, MEMCACHED_BEHAVIOR_BUFFER_REQUESTS)) + { + return MEMCACHED_BUFFERED; + } + + return MEMCACHED_SUCCESS; +} + /** @note This should be testing to see if the server really supports the binary protocol. */