]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
ChangeLog:
authorTomek Mrugalski <tomasz@isc.org>
Mon, 29 Jun 2015 02:50:55 +0000 (04:50 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Mon, 29 Jun 2015 02:50:55 +0000 (04:50 +0200)
  updated my changes
msyslog.c:
  fixed a gcc warning
run-msyslog.c:
  checking in the autogenerated file

bk: 5590b28fKUDPd0Jgj8uuTiIIWa_TOQ

ChangeLog
tests/libntp/msyslog.c
tests/libntp/run-msyslog.c

index 8e40b8c6c44b75448c5fe17631a7848cf684b4be..031286aa4a1543d1f0b2a0c3d623c173bcb0c3d6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 * Converted from gtest to Unity: sntp/tests/ kodDatabase.c, kodFile.c,
   networking.c, keyFile.c, utilities.cpp, sntptest.h,
   fileHandlingTest.h. Damir Tomić
+* Converted from gtest to Unity: sntp/tests/ caltontp.c, humandate.c,
+  msyslog.c, prettydate.c, recvbuff.c, sfptostr.c, tstotv.c, tvtots.c,
+  sntp/tests/packetProcessing.c. Tomasz Flendrich
+* tests/libntp/msyslog.c: fixed a gcc warning. Tomasz Flendrich
 ---
 (4.2.8p3-RC2) 2015/06/24 Released by Harlan Stenn <stenn@ntp.org>
 
index c9d6d2daf8a1c198e691338bb9aadf37af0be837..23ec40110557cfe33aea2b0b919899aa6ad3fcd7 100644 (file)
@@ -80,8 +80,8 @@ test_msnprintfHangingPercent(void) {
 
        ZERO(exp_buf);
        ZERO(act_buf);
-       exp_cnt = snprintf(exp_buf, sizeof(exp_buf), fmt);
-       act_cnt = msnprintf(act_buf, sizeof(act_buf), fmt);
+       exp_cnt = snprintf(exp_buf, sizeof(exp_buf), "%s", fmt);
+       act_cnt = msnprintf(act_buf, sizeof(act_buf), "%s", fmt);
        TEST_ASSERT_EQUAL(exp_cnt, act_cnt);
        TEST_ASSERT_EQUAL_STRING(exp_buf, act_buf);
        TEST_ASSERT_EQUAL_STRING("", act_buf + 1 + strlen(act_buf));
index 3da1b78f7334e09c03456587f799e395bdbd62b4..ea566a716abc8809d07fb5f1f2f0b2d35304ddff 100644 (file)
@@ -26,6 +26,7 @@
 //=======External Functions This Runner Calls=====
 extern void setUp(void);
 extern void tearDown(void);
+void resetTest(void);
 extern void test_msnprintf(void);
 extern void test_msnprintfLiteralPercentm(void);
 extern void test_msnprintfBackslashLiteralPercentm(void);