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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user