test: fix unit tests to build with -NTP and -CMDMON
This commit is contained in:
parent
beb40d63ed
commit
db7d9639b4
2 changed files with 24 additions and 2 deletions
|
@ -18,9 +18,13 @@
|
||||||
**********************************************************************
|
**********************************************************************
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <clientlog.c>
|
#include <config.h>
|
||||||
#include "test.h"
|
#include "test.h"
|
||||||
|
|
||||||
|
#if defined(FEAT_NTP) || defined(FEAT_CMDMON)
|
||||||
|
|
||||||
|
#include <clientlog.c>
|
||||||
|
|
||||||
void
|
void
|
||||||
test_unit(void)
|
test_unit(void)
|
||||||
{
|
{
|
||||||
|
@ -82,3 +86,10 @@ test_unit(void)
|
||||||
CLG_Finalise();
|
CLG_Finalise();
|
||||||
CNF_Finalise();
|
CNF_Finalise();
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
void
|
||||||
|
test_unit(void)
|
||||||
|
{
|
||||||
|
TEST_REQUIRE(0);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -18,9 +18,13 @@
|
||||||
**********************************************************************
|
**********************************************************************
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <keys.c>
|
#include <config.h>
|
||||||
#include "test.h"
|
#include "test.h"
|
||||||
|
|
||||||
|
#if defined(FEAT_NTP) || defined(FEAT_CMDMON)
|
||||||
|
|
||||||
|
#include <keys.c>
|
||||||
|
|
||||||
#define KEYS 100
|
#define KEYS 100
|
||||||
#define KEYFILE "keys.test-keys"
|
#define KEYFILE "keys.test-keys"
|
||||||
|
|
||||||
|
@ -157,3 +161,10 @@ test_unit(void)
|
||||||
CNF_Finalise();
|
CNF_Finalise();
|
||||||
HSH_Finalise();
|
HSH_Finalise();
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
void
|
||||||
|
test_unit(void)
|
||||||
|
{
|
||||||
|
TEST_REQUIRE(0);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue