Ram Gandikota
/
IOTMetronome
FRDM K64F Metronome
pal/Test/Unity/test/expectdata/testsample_new1.c@0:dbad57390bd1, 2017-05-14 (annotated)
- Committer:
- ram54288
- Date:
- Sun May 14 18:37:05 2017 +0000
- Revision:
- 0:dbad57390bd1
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ram54288 | 0:dbad57390bd1 | 1 | /* AUTOGENERATED FILE. DO NOT EDIT. */ |
ram54288 | 0:dbad57390bd1 | 2 | |
ram54288 | 0:dbad57390bd1 | 3 | /*=======Test Runner Used To Run Each Test Below=====*/ |
ram54288 | 0:dbad57390bd1 | 4 | #define RUN_TEST(TestFunc, TestLineNum) \ |
ram54288 | 0:dbad57390bd1 | 5 | { \ |
ram54288 | 0:dbad57390bd1 | 6 | Unity.CurrentTestName = #TestFunc; \ |
ram54288 | 0:dbad57390bd1 | 7 | Unity.CurrentTestLineNumber = TestLineNum; \ |
ram54288 | 0:dbad57390bd1 | 8 | Unity.NumberOfTests++; \ |
ram54288 | 0:dbad57390bd1 | 9 | if (TEST_PROTECT()) \ |
ram54288 | 0:dbad57390bd1 | 10 | { \ |
ram54288 | 0:dbad57390bd1 | 11 | CEXCEPTION_T e; \ |
ram54288 | 0:dbad57390bd1 | 12 | Try { \ |
ram54288 | 0:dbad57390bd1 | 13 | setUp(); \ |
ram54288 | 0:dbad57390bd1 | 14 | TestFunc(); \ |
ram54288 | 0:dbad57390bd1 | 15 | } Catch(e) { TEST_ASSERT_EQUAL_HEX32_MESSAGE(CEXCEPTION_NONE, e, "Unhandled Exception!"); } \ |
ram54288 | 0:dbad57390bd1 | 16 | } \ |
ram54288 | 0:dbad57390bd1 | 17 | if (TEST_PROTECT() && !TEST_IS_IGNORED) \ |
ram54288 | 0:dbad57390bd1 | 18 | { \ |
ram54288 | 0:dbad57390bd1 | 19 | tearDown(); \ |
ram54288 | 0:dbad57390bd1 | 20 | } \ |
ram54288 | 0:dbad57390bd1 | 21 | UnityConcludeTest(); \ |
ram54288 | 0:dbad57390bd1 | 22 | } |
ram54288 | 0:dbad57390bd1 | 23 | |
ram54288 | 0:dbad57390bd1 | 24 | /*=======Automagically Detected Files To Include=====*/ |
ram54288 | 0:dbad57390bd1 | 25 | #include "unity.h" |
ram54288 | 0:dbad57390bd1 | 26 | #include <setjmp.h> |
ram54288 | 0:dbad57390bd1 | 27 | #include <stdio.h> |
ram54288 | 0:dbad57390bd1 | 28 | #include "CException.h" |
ram54288 | 0:dbad57390bd1 | 29 | #include "one.h" |
ram54288 | 0:dbad57390bd1 | 30 | #include "two.h" |
ram54288 | 0:dbad57390bd1 | 31 | #include "funky.h" |
ram54288 | 0:dbad57390bd1 | 32 | #include "stanky.h" |
ram54288 | 0:dbad57390bd1 | 33 | #include <setjmp.h> |
ram54288 | 0:dbad57390bd1 | 34 | |
ram54288 | 0:dbad57390bd1 | 35 | int GlobalExpectCount; |
ram54288 | 0:dbad57390bd1 | 36 | int GlobalVerifyOrder; |
ram54288 | 0:dbad57390bd1 | 37 | char* GlobalOrderError; |
ram54288 | 0:dbad57390bd1 | 38 | |
ram54288 | 0:dbad57390bd1 | 39 | /*=======External Functions This Runner Calls=====*/ |
ram54288 | 0:dbad57390bd1 | 40 | extern void setUp(void); |
ram54288 | 0:dbad57390bd1 | 41 | extern void tearDown(void); |
ram54288 | 0:dbad57390bd1 | 42 | extern void test_TheFirstThingToTest(void); |
ram54288 | 0:dbad57390bd1 | 43 | extern void test_TheSecondThingToTest(void); |
ram54288 | 0:dbad57390bd1 | 44 | extern void test_TheThirdThingToTest(void); |
ram54288 | 0:dbad57390bd1 | 45 | extern void test_TheFourthThingToTest(void); |
ram54288 | 0:dbad57390bd1 | 46 | |
ram54288 | 0:dbad57390bd1 | 47 | |
ram54288 | 0:dbad57390bd1 | 48 | /*=======Test Reset Option=====*/ |
ram54288 | 0:dbad57390bd1 | 49 | void resetTest(void); |
ram54288 | 0:dbad57390bd1 | 50 | void resetTest(void) |
ram54288 | 0:dbad57390bd1 | 51 | { |
ram54288 | 0:dbad57390bd1 | 52 | tearDown(); |
ram54288 | 0:dbad57390bd1 | 53 | setUp(); |
ram54288 | 0:dbad57390bd1 | 54 | } |
ram54288 | 0:dbad57390bd1 | 55 | |
ram54288 | 0:dbad57390bd1 | 56 | |
ram54288 | 0:dbad57390bd1 | 57 | /*=======MAIN=====*/ |
ram54288 | 0:dbad57390bd1 | 58 | int main(void) |
ram54288 | 0:dbad57390bd1 | 59 | { |
ram54288 | 0:dbad57390bd1 | 60 | UnityBegin("testdata/testsample.c"); |
ram54288 | 0:dbad57390bd1 | 61 | RUN_TEST(test_TheFirstThingToTest, 21); |
ram54288 | 0:dbad57390bd1 | 62 | RUN_TEST(test_TheSecondThingToTest, 43); |
ram54288 | 0:dbad57390bd1 | 63 | RUN_TEST(test_TheThirdThingToTest, 53); |
ram54288 | 0:dbad57390bd1 | 64 | RUN_TEST(test_TheFourthThingToTest, 58); |
ram54288 | 0:dbad57390bd1 | 65 | |
ram54288 | 0:dbad57390bd1 | 66 | return (UnityEnd()); |
ram54288 | 0:dbad57390bd1 | 67 | } |