[Git][NTPsec/ntpsec][master] tests: fix check for parse_to_unixtime().
Gary E. Miller
gitlab at mg.gitlab.com
Thu May 25 18:25:43 UTC 2017
Gary E. Miller pushed to branch master at NTPsec / ntpsec
Commits:
8aac9ff8 by Gary E. Miller at 2017-05-25T11:24:52-07:00
tests: fix check for parse_to_unixtime().
This fixes --refclock shm,pps
- - - - -
1 changed file:
- tests/libntp/calendar.c
Changes:
=====================================
tests/libntp/calendar.c
=====================================
--- a/tests/libntp/calendar.c
+++ b/tests/libntp/calendar.c
@@ -95,7 +95,7 @@ TEST(calendar, days_per_year) {
TEST_ASSERT_EQUAL(366, days_per_year(2040));
}
-#ifdef REFCLOCK
+#ifdef CLOCK_GENERIC
TEST(calendar, parse_to_unixtime) {
/* check is_leapyear() */
clocktime_t ct;
@@ -265,7 +265,7 @@ TEST_GROUP_RUNNER(calendar) {
RUN_TEST_CASE(calendar, is_leapyear);
RUN_TEST_CASE(calendar, julian0);
RUN_TEST_CASE(calendar, days_per_year);
-#ifdef REFCLOCK
+#ifdef CLOCK_GENERIC
RUN_TEST_CASE(calendar, parse_to_unixtime);
#endif
RUN_TEST_CASE(calendar, DaySplitMerge);
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/8aac9ff85888e5961c03835516111160f9e4eb5a
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/8aac9ff85888e5961c03835516111160f9e4eb5a
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/20170525/c6bce084/attachment.html>
More information about the vc
mailing list