]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
md5encrypt tests need current_time
authorHarlan Stenn <stenn@ntp.org>
Fri, 12 Jun 2015 10:53:55 +0000 (10:53 +0000)
committerHarlan Stenn <stenn@ntp.org>
Fri, 12 Jun 2015 10:53:55 +0000 (10:53 +0000)
bk: 557aba43QYD90h9fjdaww58IvYu7pw

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

index 5b0375e1ab924416dc0c8f7b8ad86e4d8243ceb3..81b474748776efe1182bb592de9a358468da0c6d 100644 (file)
@@ -13,6 +13,8 @@
 #include "ntp.h"
 #include "ntp_stdlib.h"
 
+u_long current_time = 4;
+
 
 void setUp(void)
 { 
index 0f84d72dadf5bf71252a791793fd435adb22b51d..fdd20955d00f2e400a4a4ab49f9e1841daccf637 100644 (file)
@@ -49,11 +49,11 @@ int main(int argc, char *argv[])
   progname = argv[0];
   Unity.TestFile = "a_md5encrypt.c";
   UnityBegin("a_md5encrypt.c");
-  RUN_TEST(test_Encrypt, 39);
-  RUN_TEST(test_DecryptValid, 57);
-  RUN_TEST(test_DecryptInvalid, 63);
-  RUN_TEST(test_IPv4AddressToRefId, 71);
-  RUN_TEST(test_IPv6AddressToRefId, 82);
+  RUN_TEST(test_Encrypt, 41);
+  RUN_TEST(test_DecryptValid, 59);
+  RUN_TEST(test_DecryptInvalid, 65);
+  RUN_TEST(test_IPv4AddressToRefId, 73);
+  RUN_TEST(test_IPv6AddressToRefId, 84);
 
   return (UnityEnd());
 }