1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-29 19:24:27 +01:00

- tweaked parameterized tests to be C99 standards compliant

- fixed a few bugs in fixtures to get it to pass against our standard compilers
- added extern of OUTPUT_CHAR method to keep compilers from complaining

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@107 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
This commit is contained in:
mvandervoord
2010-12-01 01:56:24 +00:00
parent 5a6b8c405b
commit 57178b9295
8 changed files with 35 additions and 20 deletions

View File

@@ -297,7 +297,7 @@ TEST(LeakDetection, BufferOverrunFoundDuringFree)
{
void* m = malloc(10);
char* s = (char*)m;
s[10] = -1;
s[10] = (char)0xFF;
UnityOutputCharSpy_Enable(1);
EXPECT_ABORT_BEGIN
free(m);
@@ -312,7 +312,7 @@ TEST(LeakDetection, BufferOverrunFoundDuringRealloc)
{
void* m = malloc(10);
char* s = (char*)m;
s[10] = -1;
s[10] = (char)0xFF;
UnityOutputCharSpy_Enable(1);
EXPECT_ABORT_BEGIN
m = realloc(m, 100);