1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-28 18:54:27 +01:00

- updates to fixture in extras (submitted by James Grenning)

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@111 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
This commit is contained in:
mvandervoord
2011-01-04 20:08:32 +00:00
parent 4e4d4291d6
commit e067b442a3
6 changed files with 422 additions and 15 deletions

View File

@@ -285,7 +285,6 @@ TEST(LeakDetection, DetectsLeak)
UnityOutputCharSpy_Enable(1);
EXPECT_ABORT_BEGIN
UnityMalloc_EndTest();
UnityPointer_UndoAllSets();
EXPECT_ABORT_END
UnityOutputCharSpy_Enable(0);
CHECK(strstr(UnityOutputCharSpy_Get(), "This test leaks!"));
@@ -303,7 +302,6 @@ TEST(LeakDetection, BufferOverrunFoundDuringFree)
free(m);
EXPECT_ABORT_END
UnityOutputCharSpy_Enable(0);
UnityPointer_UndoAllSets();
CHECK(strstr(UnityOutputCharSpy_Get(), "Buffer overrun detected during free()"));
Unity.CurrentTestFailed = 0;
}
@@ -318,8 +316,6 @@ TEST(LeakDetection, BufferOverrunFoundDuringRealloc)
m = realloc(m, 100);
EXPECT_ABORT_END
UnityOutputCharSpy_Enable(0);
UnityPointer_UndoAllSets();
CHECK(strstr(UnityOutputCharSpy_Get(), "Buffer overrun detected during realloc()"));
free(m);
Unity.CurrentTestFailed = 0;
}
}