X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Frunner.h;h=9ec65c0635bfaf9cfcccac641e17834dcf30bcae;hb=8bfabdeae9c1ec345c88ca5325c003165212f8b6;hp=577f09ba95835b8710c7604a1b85232ae33729aa;hpb=cb08b8d0a35a78bde8a5b4caccab5dd2d789cca3;p=m6w6%2Flibmemcached diff --git a/tests/runner.h b/tests/runner.h index 577f09ba..9ec65c06 100644 --- a/tests/runner.h +++ b/tests/runner.h @@ -39,7 +39,7 @@ #pragma once #include "tests/libmemcached-1.0/generate.h" -#include "tests/memc.h" +#include "tests/memc.hpp" #include "tests/print.h" class LibmemcachedRunner : public libtest::Runner { @@ -56,7 +56,7 @@ public: test_return_t flush(libmemcached_test_container_st *container) { - Memc memc(container->parent()); + test::Memc memc(container->parent()); memcached_flush(&memc, 0); memcached_quit(&memc); @@ -78,7 +78,7 @@ private: { test_true(container); test_true(container->parent()); - Memc memc(container->parent()); + test::Memc memc(container->parent()); test_compare(true, check()); @@ -105,15 +105,16 @@ private: { char buffer[BUFSIZ]; - test_compare_got(MEMCACHED_SUCCESS, - libmemcached_check_configuration(container->construct.option_string().c_str(), container->construct.option_string().size(), - buffer, sizeof(buffer)), - container->construct.option_string().c_str()); + test_compare(MEMCACHED_SUCCESS, + libmemcached_check_configuration(container->construct.option_string().c_str(), container->construct.option_string().size(), + buffer, sizeof(buffer))); test_null(container->parent()); container->parent(memcached(container->construct.option_string().c_str(), container->construct.option_string().size())); test_true(container->parent()); +#if 0 test_compare(MEMCACHED_SUCCESS, memcached_version(container->parent())); +#endif if (container->construct.sasl()) {