MXS-2008 Update gateway and tests to initialize maxbase

Update gateway and tests to initialize maxbase using

  maxbase::init();

instead of initializing individual components.
This commit is contained in:
Johan Wikman
2018-08-21 09:37:40 +03:00
parent e852dcacdd
commit 3576780f78
6 changed files with 15 additions and 21 deletions

View File

@ -15,7 +15,7 @@
* Test modulecmd.h functionality
*/
#include <maxbase/messagequeue.hh>
#include <maxbase/maxbase.hh>
#include <maxscale/alloc.h>
#include <maxscale/dcb.h>
#include <maxscale/paths.h>
@ -466,7 +466,7 @@ int main(int argc, char **argv)
int rc = 0;
mxs_log_init(NULL, NULL, MXS_LOG_TARGET_STDOUT);
mxb::MessageQueue::init();
maxbase::init();
rc += test_arguments();
rc += test_optional_arguments();
@ -477,6 +477,7 @@ int main(int argc, char **argv)
rc += test_domain_matching("mariadbmon", "mysqlmon", "test_domain_matching2");
rc += test_output();
maxbase::finish();
mxs_log_finish();
return rc;
}