interplane.Get Omega
Read in your language

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

branch master Branches Tags History

cJSON / tests / unity / test / expectdata / testsample_yaml.c

71 lines · 1576 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 <setjmp.h>
27#include <stdio.h>
28#include "CException.h"
29#include "two.h"
30#include "three.h"
31#include <four.h>
32#include "funky.h"
33#include "stanky.h"
34#include <setjmp.h>
35
36/*=======External Functions This Runner Calls=====*/
37extern void setUp(void);
38extern void tearDown(void);
39extern void test_TheFirstThingToTest(void);
40extern void test_TheSecondThingToTest(void);
41extern void test_TheThirdThingToTest(void);
42extern void test_TheFourthThingToTest(void);
43
44
45/*=======Suite Setup=====*/
46static int suite_setup(void)
47{
48a_yaml_setup();
49}
50
51/*=======Test Reset Option=====*/
52void resetTest(void);
53void resetTest(void)
54{
55 tearDown();
56 setUp();
57}
58
59
60/*=======MAIN=====*/
61int main(void)
62{
63 suite_setup();
64 UnityBegin("testdata/testsample.c");
65 RUN_TEST(test_TheFirstThingToTest, 21);
66 RUN_TEST(test_TheSecondThingToTest, 43);
67 RUN_TEST(test_TheThirdThingToTest, 53);
68 RUN_TEST(test_TheFourthThingToTest, 58);
69
70 return (UnityEnd());
71}