From e40b0bf2b56ca8a1cc1703ecc4c9288bbd671ba7 Mon Sep 17 00:00:00 2001 From: mvandervoord Date: Wed, 30 Oct 2019 08:42:46 -0400 Subject: [PATCH] Let's just go with it. Why fight the warnings when they could catch other issues? --- extras/memory/test/unity_memory_Test.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/extras/memory/test/unity_memory_Test.c b/extras/memory/test/unity_memory_Test.c index 65eebce..6f832e2 100644 --- a/extras/memory/test/unity_memory_Test.c +++ b/extras/memory/test/unity_memory_Test.c @@ -10,6 +10,31 @@ #include #include +/* This test module includes the following tests: */ + +void test_ForceMallocFail(void); +void test_ReallocSmallerIsUnchanged(void); +void test_ReallocSameIsUnchanged(void); +void test_ReallocLargerNeeded(void); +void test_ReallocNullPointerIsLikeMalloc(void); +void test_ReallocSizeZeroFreesMemAndReturnsNullPointer(void); +void test_CallocFillsWithZero(void); +void test_FreeNULLSafety(void); +void test_DetectsLeak(void); +void test_BufferOverrunFoundDuringFree(void); +void test_BufferOverrunFoundDuringRealloc(void); +void test_BufferGuardWriteFoundDuringFree(void); +void test_BufferGuardWriteFoundDuringRealloc(void); +void test_MallocPastBufferFails(void); +void test_CallocPastBufferFails(void); +void test_MallocThenReallocGrowsMemoryInPlace(void); +void test_ReallocFailDoesNotFreeMem(void); + +/* It makes use of the following features */ +void setUp(void); +void tearDown(void); + +/* Let's Go! */ void setUp(void) { #ifdef UNITY_EXCLUDE_STDLIB_MALLOC -- GitLab