]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Updates to tests/libntp/
authorHarlan Stenn <stenn@ntp.org>
Thu, 11 Jun 2015 18:48:46 +0000 (18:48 +0000)
committerHarlan Stenn <stenn@ntp.org>
Thu, 11 Jun 2015 18:48:46 +0000 (18:48 +0000)
bk: 5579d80eZO5MRcU_k0oEFKk7M12RiA

tests/libntp/run-test-libntp.c
tests/libntp/test-libntp.c

index 32ba456dda2df06fa33f620da02b3877bc8bf4ae..44c830d4aa88f1532d882a3c009e61dfc94b7222 100644 (file)
@@ -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());
 }
index cce807623f2423bb9ce45640c6eb0f32a2db081e..06599d4c86df1f87bf3efa5d49e962d52569b204 100644 (file)
@@ -1,5 +1,13 @@
+#include <config.h>
+
+#include "ntp_stdlib.h"
+#include "ntp_calendar.h"
 #include "test-libntp.h"
-#include <stdio.h>     /* 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)