aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/ntp/tests/libntp/run-calendar.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2016-12-22 16:19:05 +0000
committerXin LI <delphij@FreeBSD.org>2016-12-22 16:19:05 +0000
commitb06b7e647fe7b4eefbd29369cf0c24e1902bf72a (patch)
treed18590df36faea870c6827c64a75516475938e4d /contrib/ntp/tests/libntp/run-calendar.c
parent8c7ff71d356bdceffa6cd5b5017c65d0d63d9abc (diff)
downloadsrc-releng/9.3.tar.gz
src-releng/9.3.zip
Fix multiple vulnerabilities of ntp.releng/9.3
Approved by: so
Notes
Notes: svn path=/releng/9.3/; revision=310419
Diffstat (limited to 'contrib/ntp/tests/libntp/run-calendar.c')
-rw-r--r--contrib/ntp/tests/libntp/run-calendar.c35
1 files changed, 20 insertions, 15 deletions
diff --git a/contrib/ntp/tests/libntp/run-calendar.c b/contrib/ntp/tests/libntp/run-calendar.c
index 555f3ba6d67c..82309bd3b8f7 100644
--- a/contrib/ntp/tests/libntp/run-calendar.c
+++ b/contrib/ntp/tests/libntp/run-calendar.c
@@ -25,6 +25,7 @@
#include "config.h"
#include "ntp_stdlib.h"
#include "ntp_calendar.h"
+#include "ntp_unixtime.h"
#include <string.h>
//=======External Functions This Runner Calls=====
@@ -45,6 +46,8 @@ extern void test_IsoCalYearsToWeeks(void);
extern void test_IsoCalWeeksToYearStart(void);
extern void test_IsoCalWeeksToYearEnd(void);
extern void test_DaySecToDate(void);
+extern void test_NtpToNtp(void);
+extern void test_NtpToTime(void);
//=======Test Reset Option=====
@@ -63,21 +66,23 @@ int main(int argc, char *argv[])
{
progname = argv[0];
UnityBegin("calendar.c");
- RUN_TEST(test_DaySplitMerge, 22);
- RUN_TEST(test_SplitYearDays1, 23);
- RUN_TEST(test_SplitYearDays2, 24);
- RUN_TEST(test_RataDie1, 25);
- RUN_TEST(test_LeapYears1, 26);
- RUN_TEST(test_LeapYears2, 27);
- RUN_TEST(test_RoundTripDate, 28);
- RUN_TEST(test_RoundTripYearStart, 29);
- RUN_TEST(test_RoundTripMonthStart, 30);
- RUN_TEST(test_RoundTripWeekStart, 31);
- RUN_TEST(test_RoundTripDayStart, 32);
- RUN_TEST(test_IsoCalYearsToWeeks, 33);
- RUN_TEST(test_IsoCalWeeksToYearStart, 34);
- RUN_TEST(test_IsoCalWeeksToYearEnd, 35);
- RUN_TEST(test_DaySecToDate, 36);
+ RUN_TEST(test_DaySplitMerge, 24);
+ RUN_TEST(test_SplitYearDays1, 25);
+ RUN_TEST(test_SplitYearDays2, 26);
+ RUN_TEST(test_RataDie1, 27);
+ RUN_TEST(test_LeapYears1, 28);
+ RUN_TEST(test_LeapYears2, 29);
+ RUN_TEST(test_RoundTripDate, 30);
+ RUN_TEST(test_RoundTripYearStart, 31);
+ RUN_TEST(test_RoundTripMonthStart, 32);
+ RUN_TEST(test_RoundTripWeekStart, 33);
+ RUN_TEST(test_RoundTripDayStart, 34);
+ RUN_TEST(test_IsoCalYearsToWeeks, 35);
+ RUN_TEST(test_IsoCalWeeksToYearStart, 36);
+ RUN_TEST(test_IsoCalWeeksToYearEnd, 37);
+ RUN_TEST(test_DaySecToDate, 38);
+ RUN_TEST(test_NtpToNtp, 40);
+ RUN_TEST(test_NtpToTime, 41);
return (UnityEnd());
}