提交 fbc20934 编写于 作者: M Mark VanderVoord 提交者: GitHub

Merge pull request #206 from bryongloden/patch-3

Update unity_fixture_Test.c (Thanks Bryon!)
......@@ -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);
TEST_ASSERT_NULL(out_of_mem);
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
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册