From: Miroslav Lichvar Date: Thu, 27 Feb 2020 07:29:58 +0000 (+0100) Subject: test: fix unit tests to build with -NTP and -CMDMON X-Git-Tag: 4.0-pre1~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db7d9639b4f6c75cbf559a1a065b2735e773452b;p=thirdparty%2Fchrony.git test: fix unit tests to build with -NTP and -CMDMON --- diff --git a/test/unit/clientlog.c b/test/unit/clientlog.c index a412b697..6f0babb7 100644 --- a/test/unit/clientlog.c +++ b/test/unit/clientlog.c @@ -18,9 +18,13 @@ ********************************************************************** */ -#include +#include #include "test.h" +#if defined(FEAT_NTP) || defined(FEAT_CMDMON) + +#include + void test_unit(void) { @@ -82,3 +86,10 @@ test_unit(void) CLG_Finalise(); CNF_Finalise(); } +#else +void +test_unit(void) +{ + TEST_REQUIRE(0); +} +#endif diff --git a/test/unit/keys.c b/test/unit/keys.c index a7873388..9c69b4a1 100644 --- a/test/unit/keys.c +++ b/test/unit/keys.c @@ -18,9 +18,13 @@ ********************************************************************** */ -#include +#include #include "test.h" +#if defined(FEAT_NTP) || defined(FEAT_CMDMON) + +#include + #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