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:
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
#include <maxscale/alloc.h>
|
#include <maxscale/alloc.h>
|
||||||
#include <maxscale/dcb.h>
|
#include <maxscale/dcb.h>
|
||||||
|
#include <maxscale/messagequeue.hh>
|
||||||
#include <maxscale/paths.h>
|
#include <maxscale/paths.h>
|
||||||
#include <maxscale/modulecmd.h>
|
#include <maxscale/modulecmd.h>
|
||||||
#include <maxscale/session.h>
|
#include <maxscale/session.h>
|
||||||
@ -464,6 +465,8 @@ int main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
|
|
||||||
|
mxs::MessageQueue::init();
|
||||||
|
|
||||||
rc += test_arguments();
|
rc += test_arguments();
|
||||||
rc += test_optional_arguments();
|
rc += test_optional_arguments();
|
||||||
rc += test_module_errors();
|
rc += test_module_errors();
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <maxscale/alloc.h>
|
#include <maxscale/alloc.h>
|
||||||
|
#include <maxscale/messagequeue.hh>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
|
||||||
using std::string;
|
using std::string;
|
||||||
@ -69,6 +70,8 @@ private:
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
mxs::MessageQueue::init();
|
||||||
|
|
||||||
MariaDBMonitor::Test tester;
|
MariaDBMonitor::Test tester;
|
||||||
return tester.run_tests();
|
return tester.run_tests();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user