[Git][NTPsec/ntpsec][working] Fix for ntpcal_ntp-to-time test 32-bit errors.

Ian Bruene gitlab at mg.gitlab.com
Fri Jun 29 14:48:03 UTC 2018


Ian Bruene pushed to branch working at NTPsec / ntpsec


Commits:
0bcd6a2b by Ian Bruene at 2018-06-29T14:46:58Z
Fix for ntpcal_ntp-to-time test 32-bit errors.

- - - - -


1 changed file:

- tests/libntp/ntp_calendar.c


Changes:

=====================================
tests/libntp/ntp_calendar.c
=====================================
--- a/tests/libntp/ntp_calendar.c
+++ b/tests/libntp/ntp_calendar.c
@@ -130,7 +130,7 @@ TEST(calendar, parse_to_unixtime) {
 
 // test the NTP to Unix time conversion
 TEST(calendar, NtpToTime1) {
-  TEST_ASSERT_EQUAL(1, ntpcal_ntp_to_time(2208988801, 2147483648));
+  TEST_ASSERT_EQUAL(2085978538, ntpcal_ntp_to_time(42, 23));
 }
 
 // test the day/sec join & split ops, making sure that 32bit



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/0bcd6a2b2c2c3771ff86b8f0d0c2397a25195465

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/0bcd6a2b2c2c3771ff86b8f0d0c2397a25195465
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20180629/dabbb956/attachment.html>


More information about the vc mailing list