xref: /netbsd-src/external/bsd/ntp/dist/sntp/tests/run-networking.c (revision 200d779b75dbeafa7bc01fd0f60bc61185f6967b)
1 /*	$NetBSD: run-networking.c,v 1.1.1.2 2015/07/10 13:11:13 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 
28 //=======External Functions This Runner Calls=====
29 extern void setUp(void);
30 extern void tearDown(void);
31 
32 
33 //=======Test Reset Option=====
34 void resetTest()
35 {
36   tearDown();
37   setUp();
38 }
39 
40 char *progname;
41 
42 
43 //=======MAIN=====
44 int main(int argc, char *argv[])
45 {
46   progname = argv[0];
47   Unity.TestFile = "networking.c";
48   UnityBegin("networking.c");
49 
50   return (UnityEnd());
51 }
52