From: Harlan Stenn Date: Thu, 11 Jun 2015 18:48:46 +0000 (+0000) Subject: Updates to tests/libntp/ X-Git-Tag: NTP_4_3_40~6^2~15^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d372a91e32c86fd1732e2445c8b8b3b3cee5a5b;p=thirdparty%2Fntp.git Updates to tests/libntp/ bk: 5579d80eZO5MRcU_k0oEFKk7M12RiA --- diff --git a/tests/libntp/run-test-libntp.c b/tests/libntp/run-test-libntp.c index 32ba456dd..44c830d4a 100644 --- a/tests/libntp/run-test-libntp.c +++ b/tests/libntp/run-test-libntp.c @@ -43,8 +43,8 @@ int main(void) { Unity.TestFile = "test-libntp.c"; UnityBegin(""); - RUN_TEST(test_modetoa, 16); - RUN_TEST(test_uglydate, 25); + RUN_TEST(test_modetoa, 24); + RUN_TEST(test_uglydate, 33); return (UnityEnd()); } diff --git a/tests/libntp/test-libntp.c b/tests/libntp/test-libntp.c index cce807623..06599d4c8 100644 --- a/tests/libntp/test-libntp.c +++ b/tests/libntp/test-libntp.c @@ -1,5 +1,13 @@ +#include + +#include "ntp_stdlib.h" +#include "ntp_calendar.h" #include "test-libntp.h" -#include /* HMS: for the printf's below */ + +const char *progname = "test-libntp"; + +// current_time is needed by authkeys. Used only in to calculate lifetime. +u_long current_time = 4; void setUp(void)