test: fix tests to skip when missing required feature

This commit is contained in:
Miroslav Lichvar
2018-09-26 18:04:09 +02:00
parent 91dbe3c6c2
commit e8bc41e862
15 changed files with 55 additions and 1 deletions

View File

@@ -28,6 +28,8 @@
#include <local.h>
#include "test.h"
#ifdef FEAT_NTP
static struct timespec current_time;
static NTP_Receive_Buffer req_buffer, res_buffer;
static int req_length, res_length;
@@ -475,3 +477,11 @@ test_unit(void)
CNF_Finalise();
HSH_Finalise();
}
#else
void
test_unit(void)
{
TEST_REQUIRE(0);
}
#endif