Move test_utils.h to server/core/test
This commit is contained in:
@ -35,8 +35,8 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <maxscale/poll.h>
|
#include <maxscale/poll.h>
|
||||||
#include <maxscale/dcb.h>
|
#include <maxscale/dcb.h>
|
||||||
#include <maxscale/test_utils.h>
|
|
||||||
#include <maxscale/listener.h>
|
#include <maxscale/listener.h>
|
||||||
|
#include "test_utils.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* test1 Allocate a service and do lots of other things
|
* test1 Allocate a service and do lots of other things
|
||||||
|
|||||||
@ -39,9 +39,9 @@ extern int debug_check_fail;
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <maxscale/queuemanager.h>
|
#include <maxscale/queuemanager.h>
|
||||||
#include <maxscale/random_jkiss.h>
|
#include <maxscale/random_jkiss.h>
|
||||||
#include <maxscale/test_utils.h>
|
|
||||||
#include <maxscale/hk_heartbeat.h>
|
#include <maxscale/hk_heartbeat.h>
|
||||||
#include <maxscale/alloc.h>
|
#include <maxscale/alloc.h>
|
||||||
|
#include "test_utils.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* test1 Allocate a queue and do lots of other things
|
* test1 Allocate a queue and do lots of other things
|
||||||
|
|||||||
@ -33,10 +33,10 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <maxscale/maxscale_test.h>
|
#include <maxscale/maxscale_test.h>
|
||||||
#include <maxscale/test_utils.h>
|
|
||||||
#include <maxscale/service.h>
|
#include <maxscale/service.h>
|
||||||
#include <maxscale/gwdirs.h>
|
#include <maxscale/gwdirs.h>
|
||||||
#include <maxscale/alloc.h>
|
#include <maxscale/alloc.h>
|
||||||
|
#include "test_utils.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* test1 Allocate a service and do lots of other things
|
* test1 Allocate a service and do lots of other things
|
||||||
|
|||||||
@ -2330,7 +2330,8 @@ diagnostic(FILTER *instance, void *fsession, DCB *dcb)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef BUILD_RULE_PARSER
|
#ifdef BUILD_RULE_PARSER
|
||||||
#include <test_utils.h>
|
// TODO: Not ok to include file from other component's test directory.
|
||||||
|
#include "../../../core/test/test_utils.h"
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user