File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ def run_tests
148148 load_configuration ( $cfg_file)
149149 test_defines = [ 'TEST' ]
150150 $cfg[ 'compiler' ] [ 'defines' ] [ 'items' ] = [ ] if $cfg[ 'compiler' ] [ 'defines' ] [ 'items' ] . nil?
151+ $cfg[ 'compiler' ] [ 'defines' ] [ 'items' ] << "UNITY_FIXTURE_NO_EXTRAS"
151152
152153 # Get a list of all source files needed
153154 src_files = Dir [ "#{ __dir__ } /src/*.c" ]
Original file line number Diff line number Diff line change 1212#include "unity_internals.h"
1313#include "unity_fixture_internals.h"
1414
15+ #ifndef UNITY_FIXTURE_NO_EXTRAS
16+ #include "unity_memory.h"
17+ #endif
18+
1519int UnityMain (int argc , const char * argv [], void (* runAllTests )(void ));
1620
1721
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ ifeq ($(shell uname -s), Darwin)
33CC = clang
44endif
55# DEBUG = -O0 -g
6- CFLAGS += -std=c99 -pedantic -Wall -Wextra -Werror
6+ CFLAGS += -std=c99 -pedantic -Wall -Wextra -Werror -DUNITY_FIXTURE_NO_EXTRAS
77CFLAGS += $(DEBUG )
88SRC = ../src/unity_fixture.c \
99 ../../../src/unity.c \
You can’t perform that action at this time.
0 commit comments