From: Harlan Stenn Date: Fri, 12 Jun 2015 10:53:55 +0000 (+0000) Subject: md5encrypt tests need current_time X-Git-Tag: NTP_4_3_40~6^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c784a5cdd6a49cb0f6f93bae9d95177d972ffd1c;p=thirdparty%2Fntp.git md5encrypt tests need current_time bk: 557aba43QYD90h9fjdaww58IvYu7pw --- diff --git a/tests/libntp/a_md5encrypt.c b/tests/libntp/a_md5encrypt.c index 5b0375e1a..81b474748 100644 --- a/tests/libntp/a_md5encrypt.c +++ b/tests/libntp/a_md5encrypt.c @@ -13,6 +13,8 @@ #include "ntp.h" #include "ntp_stdlib.h" +u_long current_time = 4; + void setUp(void) { diff --git a/tests/libntp/run-test-a_md5encrypt.c b/tests/libntp/run-test-a_md5encrypt.c index 0f84d72da..fdd20955d 100644 --- a/tests/libntp/run-test-a_md5encrypt.c +++ b/tests/libntp/run-test-a_md5encrypt.c @@ -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()); }