X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=libtest%2Fframework.cc;h=3a4d85d5b9fec36ae4a8aa4a495399397f692c25;hb=941deb278c78654f9cfeda6f343c79e2f10b746a;hp=a9730a0e95d86294a7d20fd565f95dababf7fd3a;hpb=90c96090380d18b6bb7a553d6b9c7e1ce93e248c;p=m6w6%2Flibmemcached diff --git a/libtest/framework.cc b/libtest/framework.cc index a9730a0e..3a4d85d5 100644 --- a/libtest/framework.cc +++ b/libtest/framework.cc @@ -33,8 +33,6 @@ static test_return_t _default_callback(void *p) return TEST_SUCCESS; } -static Runner defualt_runners; - Framework::Framework() : collections(NULL), _create(NULL), @@ -56,6 +54,8 @@ Framework::~Framework() } _servers.shutdown(); + + delete _runner; } test_return_t Framework::Item::pre(void *arg) @@ -120,7 +120,13 @@ test_return_t Framework::Item::startup(void* arg) libtest::Runner *Framework::runner() { - return _runner ? _runner : &defualt_runners; + if (_runner == NULL) + { + _runner= new Runner; + } + _runner->set_servers(_servers); + + return _runner; } void* Framework::create(test_return_t& arg)