xref: /netbsd-src/external/bsd/ntp/dist/tests/libntp/run-recvbuff.c (revision 03dcb730d46d34d85c9f496c1f5a3a6a43f2b7b3)
1 /*	$NetBSD: run-recvbuff.c,v 1.1.1.5 2016/01/08 21:21:33 christos Exp $	*/
2 
3 /* AUTOGENERATED FILE. DO NOT EDIT. */
4 
5 //=======Test Runner Used To Run Each Test Below=====
6 #define RUN_TEST(TestFunc, TestLineNum) \
7 { \
8   Unity.CurrentTestName = #TestFunc; \
9   Unity.CurrentTestLineNumber = TestLineNum; \
10   Unity.NumberOfTests++; \
11   if (TEST_PROTECT()) \
12   { \
13       setUp(); \
14       TestFunc(); \
15   } \
16   if (TEST_PROTECT() && !TEST_IS_IGNORED) \
17   { \
18     tearDown(); \
19   } \
20   UnityConcludeTest(); \
21 }
22 
23 //=======Automagically Detected Files To Include=====
24 #include "unity.h"
25 #include <setjmp.h>
26 #include <stdio.h>
27 #include "config.h"
28 #include "recvbuff.h"
29 
30 //=======External Functions This Runner Calls=====
31 extern void setUp(void);
32 extern void tearDown(void);
33 extern void test_Initialization(void);
34 extern void test_GetAndFree(void);
35 extern void test_GetAndFill(void);
36 
37 
38 //=======Test Reset Option=====
39 void resetTest(void);
40 void resetTest(void)
41 {
42   tearDown();
43   setUp();
44 }
45 
46 char const *progname;
47 
48 
49 //=======MAIN=====
50 int main(int argc, char *argv[])
51 {
52   progname = argv[0];
53   UnityBegin("recvbuff.c");
54   RUN_TEST(test_Initialization, 8);
55   RUN_TEST(test_GetAndFree, 9);
56   RUN_TEST(test_GetAndFill, 10);
57 
58   return (UnityEnd());
59 }
60