aboutsummaryrefslogtreecommitdiff
path: root/tests/libntp/run-ymd2yd.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2015-07-01 03:12:13 +0000
committerCy Schubert <cy@FreeBSD.org>2015-07-01 03:12:13 +0000
commit873997f35a991eee09ed91148a0cf332360380da (patch)
tree5b1ffa3ad0e56e0e9f2991011729791ee86d7632 /tests/libntp/run-ymd2yd.c
parent4ba32eb5a8bf3455c09d1513ed2af8d2c861a6ba (diff)
downloadsrc-873997f35a991eee09ed91148a0cf332360380da.tar.gz
src-873997f35a991eee09ed91148a0cf332360380da.zip
Vendor import ntp-4.2.8p3.vendor/ntp/4.2.8p3
Approved by: delphij (implicit, using SO hat) Security: VuXML: 0d0f3050-1f69-11e5-9ba9-d050996490d0 Security: http://bugs.ntp.org/show_bug.cgi?id=2853 Security: https://www.kb.cert.org/vuls/id/668167 Security: http://support.ntp.org/bin/view/Main/SecurityNotice#June_2015_NTP_Security_Vulnerabi
Notes
Notes: svn path=/vendor/ntp/dist/; revision=284990 svn path=/vendor/ntp/4.2.8p3/; revision=284992; tag=vendor/ntp/4.2.8p3
Diffstat (limited to 'tests/libntp/run-ymd2yd.c')
-rw-r--r--tests/libntp/run-ymd2yd.c57
1 files changed, 57 insertions, 0 deletions
diff --git a/tests/libntp/run-ymd2yd.c b/tests/libntp/run-ymd2yd.c
new file mode 100644
index 000000000000..faf2fcb683c6
--- /dev/null
+++ b/tests/libntp/run-ymd2yd.c
@@ -0,0 +1,57 @@
+/* AUTOGENERATED FILE. DO NOT EDIT. */
+
+//=======Test Runner Used To Run Each Test Below=====
+#define RUN_TEST(TestFunc, TestLineNum) \
+{ \
+ Unity.CurrentTestName = #TestFunc; \
+ Unity.CurrentTestLineNumber = TestLineNum; \
+ Unity.NumberOfTests++; \
+ if (TEST_PROTECT()) \
+ { \
+ setUp(); \
+ TestFunc(); \
+ } \
+ if (TEST_PROTECT() && !TEST_IS_IGNORED) \
+ { \
+ tearDown(); \
+ } \
+ UnityConcludeTest(); \
+}
+
+//=======Automagically Detected Files To Include=====
+#include "unity.h"
+#include <setjmp.h>
+#include <stdio.h>
+
+//=======External Functions This Runner Calls=====
+extern void setUp(void);
+extern void tearDown(void);
+extern void test_NonLeapYearFebruary(void);
+extern void test_NonLeapYearJune(void);
+extern void test_LeapYearFebruary(void);
+extern void test_LeapYearDecember(void);
+
+
+//=======Test Reset Option=====
+void resetTest()
+{
+ tearDown();
+ setUp();
+}
+
+char *progname;
+
+
+//=======MAIN=====
+int main(int argc, char *argv[])
+{
+ progname = argv[0];
+ Unity.TestFile = "ymd2yd.c";
+ UnityBegin("ymd2yd.c");
+ RUN_TEST(test_NonLeapYearFebruary, 17);
+ RUN_TEST(test_NonLeapYearJune, 21);
+ RUN_TEST(test_LeapYearFebruary, 26);
+ RUN_TEST(test_LeapYearDecember, 30);
+
+ return (UnityEnd());
+}