From: Harlan Stenn Date: Sat, 7 Nov 2015 23:46:41 +0000 (+0000) Subject: Unity test cleanup. Harlan Stenn. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa37d05c1f9c0dd431d0b640899da2f16226cdb3;p=thirdparty%2Fntp.git Unity test cleanup. Harlan Stenn. bk: 563e8d61X1vxO8Wtqdks_EWSvlQMUQ --- diff --git a/sntp/tests/t-log.c b/sntp/tests/t-log.c index f4def6dfc..fd508e445 100644 --- a/sntp/tests/t-log.c +++ b/sntp/tests/t-log.c @@ -44,7 +44,7 @@ void testWriteInCustomLogfile(void){ //sntp_init_logging(testName); - msyslog(LOG_ERR, testString); + msyslog(LOG_ERR, "%s", testString); FILE * f = fopen("testLogfile2.log","r"); char line[256]; diff --git a/tests/sandbox/run-uglydate.c b/tests/sandbox/run-uglydate.c index e65cd0109..be0a768fe 100644 --- a/tests/sandbox/run-uglydate.c +++ b/tests/sandbox/run-uglydate.c @@ -47,7 +47,7 @@ int main(int argc, char *argv[]) { progname = argv[0]; UnityBegin("uglydate.c"); - RUN_TEST(test_ConstantDateTime, 9); + RUN_TEST(test_ConstantDateTime, 8); return (UnityEnd()); } diff --git a/tests/sandbox/uglydate.c b/tests/sandbox/uglydate.c index 5bc639ece..d4a30e395 100644 --- a/tests/sandbox/uglydate.c +++ b/tests/sandbox/uglydate.c @@ -5,6 +5,8 @@ //#include "ntp_stdlib.h" //#include "libntptest.h" +void test_ConstantDateTime(void); + void test_ConstantDateTime(void) { const u_int32 HALF = 2147483648UL;