• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* AUTOGENERATED FILE. DO NOT EDIT. */
2 
3 /*=======Test Runner Used To Run Each Test Below=====*/
4 #define RUN_TEST(TestFunc, TestLineNum) \
5 { \
6   Unity.CurrentTestName = #TestFunc; \
7   Unity.CurrentTestLineNumber = TestLineNum; \
8   Unity.NumberOfTests++; \
9   if (TEST_PROTECT()) \
10   { \
11     CEXCEPTION_T e; \
12     Try { \
13       setUp(); \
14       TestFunc(); \
15     } Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \
16   } \
17   if (TEST_PROTECT() && !TEST_IS_IGNORED) \
18   { \
19     tearDown(); \
20   } \
21   UnityConcludeTest(); \
22 }
23 
24 /*=======Automagically Detected Files To Include=====*/
25 #include "unity.h"
26 #include <setjmp.h>
27 #include <stdio.h>
28 #include "CException.h"
29 #include "one.h"
30 #include "two.h"
31 #include "funky.h"
32 #include "stanky.h"
33 #include <setjmp.h>
34 
35 int GlobalExpectCount;
36 int GlobalVerifyOrder;
37 char* GlobalOrderError;
38 
39 /*=======External Functions This Runner Calls=====*/
40 extern void setUp(void);
41 extern void tearDown(void);
42 extern void test_TheFirstThingToTest(void);
43 extern void test_TheSecondThingToTest(void);
44 extern void test_TheThirdThingToTest(void);
45 extern void test_TheFourthThingToTest(void);
46 
47 
48 /*=======Test Reset Option=====*/
49 void resetTest(void);
resetTest(void)50 void resetTest(void)
51 {
52   tearDown();
53   setUp();
54 }
55 
56 
57 /*=======MAIN=====*/
main(void)58 int main(void)
59 {
60   UnityBegin("testdata/testsample.c");
61   RUN_TEST(test_TheFirstThingToTest, 21);
62   RUN_TEST(test_TheSecondThingToTest, 43);
63   RUN_TEST(test_TheThirdThingToTest, 53);
64   RUN_TEST(test_TheFourthThingToTest, 58);
65 
66   return (UnityEnd());
67 }
68