Fix test-program failures
Due to recent changes, mxs::MessageQueue::init() must be called explicitly, if a monitor is created.
This commit is contained in:
parent
9525d3507b
commit
0afcd4b468
@ -17,6 +17,7 @@
|
||||
|
||||
#include <maxscale/alloc.h>
|
||||
#include <maxscale/dcb.h>
|
||||
#include <maxscale/messagequeue.hh>
|
||||
#include <maxscale/paths.h>
|
||||
#include <maxscale/modulecmd.h>
|
||||
#include <maxscale/session.h>
|
||||
@ -464,6 +465,8 @@ int main(int argc, char **argv)
|
||||
{
|
||||
int rc = 0;
|
||||
|
||||
mxs::MessageQueue::init();
|
||||
|
||||
rc += test_arguments();
|
||||
rc += test_optional_arguments();
|
||||
rc += test_module_errors();
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include <sstream>
|
||||
#include <vector>
|
||||
#include <maxscale/alloc.h>
|
||||
#include <maxscale/messagequeue.hh>
|
||||
#include <set>
|
||||
|
||||
using std::string;
|
||||
@ -69,6 +70,8 @@ private:
|
||||
|
||||
int main()
|
||||
{
|
||||
mxs::MessageQueue::init();
|
||||
|
||||
MariaDBMonitor::Test tester;
|
||||
return tester.run_tests();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user