mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-09-17 11:43:29 +08:00
Merge pull request #206 from bryongloden/patch-3
Update unity_fixture_Test.c (Thanks Bryon!)
This commit is contained in:
@ -524,10 +524,13 @@ TEST(InternalMalloc, ReallocFailDoesNotFreeMem)
|
||||
void* out_of_mem = realloc(n1, UNITY_INTERNAL_HEAP_SIZE_BYTES/2 + 1);
|
||||
void* n2 = malloc(10);
|
||||
TEST_ASSERT_NOT_NULL(m);
|
||||
if (out_of_mem == NULL)
|
||||
{
|
||||
free(n1);
|
||||
TEST_ASSERT_NULL(out_of_mem);
|
||||
}
|
||||
TEST_ASSERT_NOT_EQUAL(n2, n1);
|
||||
free(n2);
|
||||
free(n1);
|
||||
free(m);
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user