
Due to an include conflict between /usr/include/poll.h and maxscale/server/include/poll.h the latter was moved to maxscale/server/include/maxscale/poll.h. Once 1.4 is out, all maxscale header files will be moved to that same sub-directory. That will prevent include conflicts and also make it easy to see which include files belong to maxscale and which do not.
23 lines
412 B
C
23 lines
412 B
C
#ifndef TEST_UTILS_H
|
|
#define TEST_UTILS_H
|
|
#include <maxscale/poll.h>
|
|
#include <dcb.h>
|
|
#include <housekeeper.h>
|
|
#include <maxscale_test.h>
|
|
#include <log_manager.h>
|
|
#include <statistics.h>
|
|
|
|
void init_test_env(char *path)
|
|
{
|
|
int argc = 3;
|
|
|
|
const char* logdir = path ? path : TEST_LOG_DIR;
|
|
|
|
ts_stats_init();
|
|
mxs_log_init(NULL, logdir, MXS_LOG_TARGET_DEFAULT);
|
|
poll_init();
|
|
hkinit();
|
|
}
|
|
|
|
#endif
|