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
cJSON / tests / unity / examples / example_2 / test / TestProductionCode2.c
| 1 | #include "ProductionCode2.h" |
| 2 | #include "unity.h" |
| 3 | #include "unity_fixture.h" |
| 4 | |
| 5 | TEST_GROUP(ProductionCode2); |
| 6 | |
| 7 | /* These should be ignored because they are commented out in various ways: |
| 8 | #include "whatever.h" |
| 9 | */ |
| 10 | //#include "somethingelse.h" |
| 11 | |
| 12 | TEST_SETUP(ProductionCode2) |
| 13 | { |
| 14 | } |
| 15 | |
| 16 | TEST_TEAR_DOWN(ProductionCode2) |
| 17 | { |
| 18 | } |
| 19 | |
| 20 | TEST(ProductionCode2, IgnoredTest) |
| 21 | { |
| 22 | TEST_IGNORE_MESSAGE("This Test Was Ignored On Purpose"); |
| 23 | } |
| 24 | |
| 25 | TEST(ProductionCode2, AnotherIgnoredTest) |
| 26 | { |
| 27 | TEST_IGNORE_MESSAGE("These Can Be Useful For Leaving Yourself Notes On What You Need To Do Yet"); |
| 28 | } |
| 29 | |
| 30 | TEST(ProductionCode2, ThisFunctionHasNotBeenTested_NeedsToBeImplemented) |
| 31 | { |
| 32 | TEST_IGNORE(); //Like This |
| 33 | } |