huanghun_forward
7cc1fcaced
update 2.6.1
...
Signed-off-by: huanghun_forward <huangguohui6@huawei.com >
2026-04-22 16:15:31 +08:00
mamingshuai
5891e6f712
update openharmony 1.0.1
2021-03-11 18:42:54 +08:00
wenjun
3f760d041f
add OpenHarmony 1.0 baseline
2020-09-09 09:26:48 +08:00
mvandervoord
10846eef8f
Make memory handling optional in fixtures
2019-10-30 09:50:22 -04:00
mvandervoord
f794a96eed
Split memory from fixtures and make it's own addon
2019-10-30 07:52:07 -04:00
mvandervoord
62b4d4cd56
More tweaking to make it happy on both windows and *nix
2019-10-25 11:53:59 -04:00
mvandervoord
03df98a519
update fixture tests too
2019-10-25 11:41:27 -04:00
mvandervoord
a9a2399310
- added target for checking ANSI compliance
...
- fixed ANSI (C89) issues, including #418
2019-10-25 10:17:12 -04:00
Aviv Palivoda
9752a73069
Add UNITY_OUTPUT_CHAR_HEADER_DECLARATION to fixture tests Makefile defines
2017-08-01 23:36:13 +03:00
jsalling
31ae809f56
Ability to set size of pointer list, smaller default size
2016-12-23 22:53:24 -06:00
Mark VanderVoord
20dfa96fdd
Revised internal type naming scheme to better sandbox Unity away from everything else. Sure, short was nice, but not at the expense of naming collisions.
2016-11-29 08:38:51 -05:00
jsalling
f3f38b662b
Remove extra newline in verbose output format of fixture
2016-10-10 23:10:40 -05:00
jsalling
91b020becb
Start building Unity & Fixture with C89 flags in continuous integration
...
Remove stdint.h from the C89 build due to -pedantic warnings from type
'long long' and constants like UINTPTR_MAX = 18446744073709551615ULL
2016-08-30 19:57:55 -05:00
jsalling
118a0ad6db
C89 comment style changes only
2016-08-23 23:10:05 -05:00
jsalling
cb6bade05d
Verify the tests for Internal Malloc implementation free all the heap
...
Make it more clear that each test of the internal heap implementation
should free in LIFO order. Without this check, memory can be stranded
but still pass.
2016-08-21 11:53:15 -05:00
jsalling
e93c9802ef
Move free() calls before test asserts, add comments to ReallocFail test
2016-08-21 11:45:54 -05:00
jsalling
fae3382a35
Reorder free calls to free all memory
...
The internal malloc must free in LIFO order
2016-08-21 11:27:47 -05:00
Bryon Gloden, CISSP®
fbe2d568a8
Update unity_fixture_Test.c
...
I believe if realloc() returns a pointer to a different location, the old location is freed. However, the pointer 'n1' is not freed if realloc fails to obtain a large enough block of memory and returns NULL. (more details on [StackOverflow](http://stackoverflow.com/a/16676964 )).
2016-07-28 17:11:11 -04:00
Bryon Gloden, CISSP®
7234b3b783
Update unity_fixture_Test.c
...
[../Unity-master/extras/fixture/test/unity_fixture_Test.c:530]: (error) Deallocating a deallocated pointer: n1
This solution from Daniel Fischer was helpful in fixing the error because if realloc returns a pointer to a different location, the old location is freed.
Found by https://github.com/bryongloden/cppcheck
2016-07-26 14:40:00 -04:00
Mark VanderVoord
6b32e9f707
Update Fixtures too.
2016-05-06 10:55:41 -04:00
jsalling
69b9229a7b
100% code coverage for Unity Fixture
...
Add tests for uncovered lines
2016-02-29 23:39:03 -06:00
jsalling
d4217ffdb9
Create coverage target in Makefile to output statement coverage with gcov
2016-02-29 23:25:39 -06:00
Mark VanderVoord
ac50a125f2
Merge pull request #175 from jsalling/feature/C89-build
...
Fix C89 warnings about variables at top of scope, enums, variadic macros
2016-02-29 16:59:40 -05:00
jsalling
aae49fcb8d
Fix C89 warnings about variables at top of scope, enums, variadic macros
...
Add extern UnityFixture in internals header. Add C89 target in Makefile
clang will show these warnings but can suppress "//" with -Wno-comment.
2016-02-26 20:51:04 -06:00
jsalling
ad10c4209e
Clean up Ignore Test function in Fixture
...
By removing the call to the Conclude function the code is simplified
and doesn't depend on global state updates. Tests that are ignored
after the testBody is called still output the right EOL.
2016-02-25 13:12:22 -06:00
jsalling
fc50b7675e
Delete function call syntax from Spy detect macros
...
This fixes #168 . See that github.com issue for more discussion.
Allows the tests to build when putchar() is defined as a macro
with parenthesis around it, as in the ARM embedded gcc compiler.
2016-02-25 10:41:04 -06:00
jsalling
31a2dbaf75
Rename template for testing to be more fitting
2016-02-24 20:24:14 -06:00
jsalling
fd64faa982
Fix additional primitive type conversion warnings on Linux
...
Using gcc 4.8 on Ubuntu 14
2016-02-23 14:46:52 -06:00
jsalling
93697af40c
Variables used in Fixture tests should be static
...
Gets rid of warnings about extern with clang's -Weverything
2016-02-17 22:20:56 -06:00
jsalling
79d58c719b
Clean up conversion warnings in Fixture
...
Turn on -Wconversion in Makefile, fix all warnings
2016-02-17 22:17:05 -06:00
jsalling
9c456ebfc8
Add strict compiler flags to Makefile and a 'clean' target
...
Comment out -Wconversion for now, since the build would fail
2016-02-09 14:24:00 -06:00
jsalling
b778e5cb13
Add test for setting max number of pointers in Fixture
2016-02-09 10:36:33 -06:00
jsalling
dd99d0b654
Remove opaque typedef from UnityFixture struct, as done in core Unity
2016-02-08 16:53:10 -06:00
jsalling
aadcd7a928
Move makefile output to build/ dir for Fixture testing
2016-02-05 21:48:23 -06:00
jsalling
68ef708b24
Check for writes to guard space on malloc'd buffers in Fixture
...
There was already some space reserved as a guard, added check for writes
before the beginning of the buffer. Did not change the 'overrun' message.
Underrun buffer writes are likely to be a more rare case.
2016-02-05 21:31:38 -06:00
jsalling
a172314908
Add configuration option UNITY_EXCLUDE_STDLIB_MALLOC to Fixture
...
This feature removes the dependency on malloc/free for constrained
embedded systems without a heap. It uses a static heap inside
Unity Fixture. Setting UNITY_INTERNAL_HEAP_SIZE_BYTES sizes the heap.
Add tests for new option, add targets to makefile for running tests.
UNITY_FIXTURE_MALLOC for Fixture use only, remove from unity_output_Spy.c.
2016-02-01 23:54:06 -06:00
jsalling
b33d325ea8
Add checks for NULL return value to Fixture tests and spy
...
Help failures in the spy by adding filename and message to output
2016-01-31 22:44:45 -06:00
jsalling
fe44ebe808
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
9b49ad3337
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
61d651a3ad
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
ce8e17c5f7
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
230166a218
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
afb4b9c00d
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