Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/cJSON/blob/master/tests/unity/test/expectdata/testsample_cmd.c # cJSON [Ported from github.com/DaveGamble/cJSON] Fix: heap-use-after-free in merge_patch when patch is subtree of target (#1065) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `cJSON / tests / unity / test / expectdata / testsample_cmd.c` 61 lines ยท 1427 bytes Raw Blame History 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 27 #include 28 #include "CException.h" 29 #include "funky.h" 30 #include "stanky.h" 31 #include 32 33 /*=======External Functions This Runner Calls=====*/ 34 extern void setUp(void); 35 extern void tearDown(void); 36 extern void test_TheFirstThingToTest(void); 37 extern void test_TheSecondThingToTest(void); 38 extern void test_TheThirdThingToTest(void); 39 extern void test_TheFourthThingToTest(void); 40 41 42 /*=======Test Reset Option=====*/ 43 void resetTest(void); 44 void resetTest(void) 45 { 46 tearDown(); 47 setUp(); 48 } 49 50 51 /*=======MAIN=====*/ 52 int main(void) 53 { 54 UnityBegin("testdata/testsample.c"); 55 RUN_TEST(test_TheFirstThingToTest, 21); 56 RUN_TEST(test_TheSecondThingToTest, 43); 57 RUN_TEST(test_TheThirdThingToTest, 53); 58 RUN_TEST(test_TheFourthThingToTest, 58); 59 60 return (UnityEnd()); 61 }