jsalling
c5bfe0e100
Fixture C99 compliance on tricky macros for Spy & match core Unity version
...
Add CFLAGS in Fixture Makefile to catch C99 rules with '-pedantic'
2015-12-22 12:40:31 -06:00
jsalling
5cc5e3473d
Add MACROs to check if tests are built using the Output Spy
...
Ignore tests that need the Spy if we are not building with it
2015-12-21 14:37:23 -06:00
jsalling
caa3f6663d
Add Makefile to fixture/test to make building tests easier
...
No rake and ruby required to build existing tests
2015-12-18 17:48:35 -06:00
jsalling
c629e120e1
Fix Leak Detection always passing, but printing a fail message
...
Don't set CurrentTestFailed = 0 at end, move before last check
These tests now fail if the output_Spy is not used instead of putchar()
2015-12-16 17:21:09 -06:00
jsalling
81cf5eb626
Do not add EOL after every ignored test using Unity Fixture
...
Revert part of commit 77af37ad , code looked like a temporary change
The behavior is back to the original, printing "....!..." in quiet mode
Added an ignored test to Fixture for visual inspection
2015-12-15 20:57:22 -06:00
Gergely Nagy
1affe544d2
unity_fixture: Make unity_free() NULL-safe
...
At the start of unity_free(), check mem for NULL, and return immediately
if it is, so we don't crash in this case. This mimics the behaviour of
most free() implementations. Closes #135 .
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org >
2015-10-06 10:44:44 +02:00
Andrew Burks
22b05ad537
Fixes #118 : unity_output_Spy should use the platform-agnostic macros for memory.
2015-07-01 11:17:09 -07:00
nimrodz
b389c71e71
Added stricter error checks by the compiler, and adapted all impacted code.
...
Primarily -
* Added "static" to static functions.
* Added proper signature with "void" to functions without arguments.
* Marked unused arguments with "(void)".
* Removed entirely unused static functions.
* Added "const" to preserve const-correctness.
* Added function prototypes for external functions.
2015-01-18 00:39:05 +02:00
kotofos
c1379802eb
no arguments for UnityPointer_Init
2014-12-03 11:58:08 +06:00
James Hood
5e401afa83
updating CLI for unity_fixture.h to handle unknown command line arguments (instead of entering an infinite loop)
2013-03-04 14:35:18 -06:00
Bryan A. Jones
4817d78de3
Fix: Declare all variables before statements in a function.
...
Likewise, place all function prototypes before statements.
These changes support Microsoft Visual Studio 2008 Express Edition,
which follows C89-style rules.
2013-01-11 12:56:15 -06:00
mvandervoord
3d61357343
- updated fixture to match James' suggestions.
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@124 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-03-09 02:05:05 +00:00
mvandervoord
e067b442a3
- 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
2011-01-04 20:08:32 +00:00
mvandervoord
57178b9295
- 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
2010-12-01 01:56:24 +00:00
mvandervoord
5a6b8c405b
- added a tweaked version of James Grenning's unity_fixture to extras
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@106 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-11-29 22:53:57 +00:00