]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
timevalops.c:
authorDamir Tomic <viperus@ntp.org>
Tue, 16 Jun 2015 13:33:51 +0000 (15:33 +0200)
committerDamir Tomic <viperus@ntp.org>
Tue, 16 Jun 2015 13:33:51 +0000 (15:33 +0200)
  replaced TEST_ASSERT_EQUAL_INT64 with TEST_ASSERT_EQUAL()  (TEST_ASSER_EQUAL_INT() also autodetects 32 bit or 64 bit long int, which time_t uses)

bk: 558025bf-RzLMTYeXasznTDq_o-GNA

tests/libntp/timevalops.c

index d9754fc70777364c6863e0653d9ff6f3f94cf001..dbbad06075ba1e96a33c7a4706b0a70576ed8ab6 100644 (file)
@@ -15,7 +15,7 @@
 //in unity_helper.h :
 #define TEST_ASSERT_EQUAL_timeval(a, b) { \
     TEST_ASSERT_EQUAL_MESSAGE(a.tv_sec, b.tv_sec, "Field tv_sec"); \
-    TEST_ASSERT_EQUAL_INT64_MESSAGE(a.tv_usec, b.tv_usec, "Field tv_usec");    \
+    TEST_ASSERT_EQUAL_MESSAGE(a.tv_usec, b.tv_usec, "Field tv_usec");  \
 }
 
 //timeval has time_t, long, and time_t is basically uint