test: fix unit tests to build with -NTP and -CMDMON

This commit is contained in:
Miroslav Lichvar 2020-02-27 08:29:58 +01:00
parent beb40d63ed
commit db7d9639b4
2 changed files with 24 additions and 2 deletions

View file

@ -18,9 +18,13 @@
**********************************************************************
*/
#include <clientlog.c>
#include <config.h>
#include "test.h"
#if defined(FEAT_NTP) || defined(FEAT_CMDMON)
#include <clientlog.c>
void
test_unit(void)
{
@ -82,3 +86,10 @@ test_unit(void)
CLG_Finalise();
CNF_Finalise();
}
#else
void
test_unit(void)
{
TEST_REQUIRE(0);
}
#endif

View file

@ -18,9 +18,13 @@
**********************************************************************
*/
#include <keys.c>
#include <config.h>
#include "test.h"
#if defined(FEAT_NTP) || defined(FEAT_CMDMON)
#include <keys.c>
#define KEYS 100
#define KEYFILE "keys.test-keys"
@ -157,3 +161,10 @@ test_unit(void)
CNF_Finalise();
HSH_Finalise();
}
#else
void
test_unit(void)
{
TEST_REQUIRE(0);
}
#endif