Home
last modified time | relevance | path

Searched refs:malloc_fail_countdown (Results 1 – 2 of 2) sorted by relevance

/third_party/unity/extras/memory/src/
Dunity_memory.c13 static int malloc_fail_countdown = MALLOC_DONT_FAIL; variable
18 malloc_fail_countdown = MALLOC_DONT_FAIL; in UnityMalloc_StartTest()
23 malloc_fail_countdown = MALLOC_DONT_FAIL; in UnityMalloc_EndTest()
32 malloc_fail_countdown = countdown; in UnityMalloc_MakeMallocFailAfterCount()
75 if (malloc_fail_countdown != MALLOC_DONT_FAIL) in unity_malloc()
77 if (malloc_fail_countdown == 0) in unity_malloc()
79 malloc_fail_countdown--; in unity_malloc()
/third_party/cJSON/tests/unity/extras/fixture/src/
Dunity_fixture.c136 static int malloc_fail_countdown = MALLOC_DONT_FAIL; variable
141 malloc_fail_countdown = MALLOC_DONT_FAIL; in UnityMalloc_StartTest()
146 malloc_fail_countdown = MALLOC_DONT_FAIL; in UnityMalloc_EndTest()
155 malloc_fail_countdown = countdown; in UnityMalloc_MakeMallocFailAfterCount()
187 if (malloc_fail_countdown != MALLOC_DONT_FAIL) in unity_malloc()
189 if (malloc_fail_countdown == 0) in unity_malloc()
191 malloc_fail_countdown--; in unity_malloc()