]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Unity test cleanup. Harlan Stenn.
authorHarlan Stenn <stenn@ntp.org>
Sat, 7 Nov 2015 23:46:41 +0000 (23:46 +0000)
committerHarlan Stenn <stenn@ntp.org>
Sat, 7 Nov 2015 23:46:41 +0000 (23:46 +0000)
bk: 563e8d61X1vxO8Wtqdks_EWSvlQMUQ

sntp/tests/t-log.c
tests/sandbox/run-uglydate.c
tests/sandbox/uglydate.c

index f4def6dfc6126dd643b929a6e2c715540c258582..fd508e445098c3a45f67519c006add1a77764720 100644 (file)
@@ -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];
 
index e65cd01097ad32903efaef0c91617b432a43c66e..be0a768fec819eb3feab024451c8200fd4a95edd 100644 (file)
@@ -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());
 }
index 5bc639ecea46343548c169b152406553758b3efa..d4a30e3950151ad1de269cd981fd27df8ed75375 100644 (file)
@@ -5,6 +5,8 @@
 //#include "ntp_stdlib.h"
 //#include "libntptest.h"
 
+void test_ConstantDateTime(void);
+
 void
 test_ConstantDateTime(void) {
        const u_int32 HALF = 2147483648UL;