[Git][NTPsec/ntpsec][working] Fix for 32-bit error in ntpcal_date_to_time test.

Ian Bruene gitlab at mg.gitlab.com
Sat Jun 30 21:43:45 UTC 2018


Ian Bruene pushed to branch working at NTPsec / ntpsec


Commits:
7347d728 by Ian Bruene at 2018-06-30T21:42:04Z
Fix for 32-bit error in ntpcal_date_to_time test.

- - - - -


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
@@ -409,13 +409,13 @@ TEST(calendar, TmToDaysec1) {
 TEST(calendar, DateToTime1) {
     struct calendar jd;
 
-	jd.year = 1;
+	jd.year = 2000;
 	jd.month = 2;
 	jd.monthday = 4;
 	jd.hour = 8;
 	jd.minute = 16;
 	jd.second = 32;
-	TEST_ASSERT_EQUAL(-62132629408, ntpcal_date_to_time(&jd));
+	TEST_ASSERT_EQUAL(949652192, ntpcal_date_to_time(&jd));
 }
 
 TEST(calendar, Ntp64ToDate1) {



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/7347d7281e4e479f5387999685d9ca37173e748e

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/7347d7281e4e479f5387999685d9ca37173e748e
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/20180630/f7261810/attachment.html>


More information about the vc mailing list