X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Frunner.h;h=17bf55a62ad7214b9fd889ebc1a3e63d48a59399;hb=d40388104245a17f257e39f72ae84967ce210aa7;hp=fcce6e2f38bd099108801e383ccbbe574fd24ed6;hpb=f363012dbad70fe0d1e6d714f432e1567cef4935;p=awesomized%2Flibmemcached diff --git a/tests/runner.h b/tests/runner.h index fcce6e2f..17bf55a6 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()); @@ -86,14 +86,7 @@ private: if (func) { test_true(container); - try { - ret= func(&memc); - } - catch (std::exception& e) - { - libtest::Error << e.what(); - ret= TEST_FAILURE; - } + ret= func(&memc); } return ret; @@ -105,10 +98,9 @@ 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()));