mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 14:05:08 -05:00
test: fix unit tests to build with -NTP and -CMDMON
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user