mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-07-15 00:52:46 +08:00
Fixes #3: unity_fixture tests don't build. unity.c and unity_fixture_malloc_overrides.h neglected to include <stddef.h> even though the reference 'size_t' and 'NULL'.
This commit is contained in:
@ -8,6 +8,8 @@
|
|||||||
#ifndef UNITY_FIXTURE_MALLOC_OVERRIDES_H_
|
#ifndef UNITY_FIXTURE_MALLOC_OVERRIDES_H_
|
||||||
#define UNITY_FIXTURE_MALLOC_OVERRIDES_H_
|
#define UNITY_FIXTURE_MALLOC_OVERRIDES_H_
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
#define malloc unity_malloc
|
#define malloc unity_malloc
|
||||||
#define calloc unity_calloc
|
#define calloc unity_calloc
|
||||||
#define realloc unity_realloc
|
#define realloc unity_realloc
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
============================================================================ */
|
============================================================================ */
|
||||||
|
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
#define UNITY_FAIL_AND_BAIL { Unity.CurrentTestFailed = 1; longjmp(Unity.AbortFrame, 1); }
|
#define UNITY_FAIL_AND_BAIL { Unity.CurrentTestFailed = 1; longjmp(Unity.AbortFrame, 1); }
|
||||||
#define UNITY_IGNORE_AND_BAIL { Unity.CurrentTestIgnored = 1; longjmp(Unity.AbortFrame, 1); }
|
#define UNITY_IGNORE_AND_BAIL { Unity.CurrentTestIgnored = 1; longjmp(Unity.AbortFrame, 1); }
|
||||||
|
Reference in New Issue
Block a user