135 Commits

Author SHA1 Message Date
huanghun_forward 7cc1fcaced update 2.6.1
Signed-off-by: huanghun_forward <huangguohui6@huawei.com>
2026-04-22 16:15:31 +08:00
黄国辉 9b846b9885 update unity 2.6.0
Signed-off-by: 黄国辉 <huangguohui6@huawei.com>
2024-05-13 17:57:44 +08:00
openharmony_ci e4b531f70e 回退 'Pull Request !16 : update unity2.6.0' 2024-05-11 11:52:21 +00:00
lizhengrong 04aac07d60 update unity 2.6.0
Signed-off-by: lizhengrong <lizhengrong9@huawei.com>
2024-04-23 11:35:37 +08:00
mipengwei b81b849bf5 Signed-off-by:mipengwei<mipengwei@huawei.com> 2022-06-29 11:45:13 +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 6bfa2b3d30 Try to keep compiler from complaining about this cast that we KNOW is okay. 2019-10-30 08:53:08 -04:00
mvandervoord 0c5ca4ffa4 Let's just go with it. Why fight the warnings when they could catch other issues? 2019-10-30 08:42:46 -04:00
mvandervoord f794a96eed Split memory from fixtures and make it's own addon 2019-10-30 07:52:07 -04:00
mvandervoord f19945080b Add verifyTest option to go with resetTest.
Fix docs.
2019-10-28 10:32:22 -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
mvandervoord 740c98b164 Updated to newer coding standard 2019-10-24 15:33:41 -04:00
Alessio Centazzo af4d30d2d5 Fix compiler warning
Fix compiler complaint about declaration after statement
2019-09-29 22:01:03 -07:00
Alessio Centazzo 016c25f0a1 Fix MallocThenReallocGrowsMemoryInPlace
The realloc was not taking in account extra bytes needed for the the pointer proper alignment
2019-09-29 21:45:51 -07:00
Alessio Centazzo 9799cd2e7a Fix malloc alignment
Make sure the malloc alignment is always aligned to the architecture's pointer size
2019-09-29 15:08:48 -07:00
Mark VanderVoord 4654d32550 It doesn't seem like there is a time where setUp and tearDown aren't required in Fixture. 2019-07-05 19:29:21 -04:00
Dom Postorivo c40d29206a silent mode in unity fixture 2019-05-04 11:52:36 -04:00
Dom Postorivo c541bace2c Use Pass string from unity.c in unity_fixture.c to garuntee colour behavior 2019-04-13 14:29:06 -04:00
John Lindgren 655f08cc29 Fix uninitialized constant 2018-11-28 13:36:27 -05:00
John Lindgren 5f8fab986e Fix (most) Rubocop warnings. 2018-11-28 13:27:00 -05:00
elliot 34f93a6277 Merge branch 'master' into unit-test-execution-time 2018-07-28 20:01:50 +01:00
Jeremy Hannon 71d23f8597 MISRA 16.4: param names match func decl & defn
parameter names should match between declaration and definition.
(MISRA 2004 rule 16.4)
2018-02-10 13:15:34 -06:00
balaksh a087e8b786 Implement optional printing of execution time for each test 2017-09-10 13:00:09 +12:00
Mark VanderVoord 87a7641d39 Update to match Ruby style guide 2017-09-08 15:37:31 -04:00
Aviv Palivoda 0f7d3592b2 Add UNITY_OUTPUT_CHAR_HEADER_DECLARATION to fixture tests rakefile_helper.rb 2017-08-04 14:43:14 +03:00
Aviv Palivoda 9752a73069 Add UNITY_OUTPUT_CHAR_HEADER_DECLARATION to fixture tests Makefile defines 2017-08-01 23:36:13 +03:00
Mark VanderVoord 5e3debb4ed - Generator will not change names by default
- Fixed some style issues.
2017-06-25 13:58:31 -04:00
Mark VanderVoord ad0c4f3631 Finished updating all Ruby scripts to match our coding standard. Woo! 2017-03-28 20:02:53 -04:00
Mark VanderVoord d6848df54b Another round of fixing things that the stylizer “corrected” for me. 2017-03-28 08:59:58 -04:00
Mark VanderVoord 5899519a48 Starting to enforce our coding style. The first step is that we’ve pulled in Rubocop to check out Ruby syntax. There is likely a bit of customization to do yet AND there is definitely that backlog of todo’s that we just told it to ignore. 2017-03-28 08:44:32 -04:00
Mark VanderVoord b2506617e6 stdlib.h explicitly called in fixtures when malloc used, now. (Fixes issue #268) 2017-03-20 14:09:26 -04:00
Mark VanderVoord 31a8856cfb Merge pull request #253 from jsalling/feature/cpputest-macros
Option to exclude CppUTest compatibility asserts (Thanks!)
2017-01-19 06:57:28 -05:00
jsalling 591f549533 Ran Unity into a source code formatter, no code changes
Used clang-format, which produces noise on stuff you don't care about
and requires setting it up to match the existing code base. Kept the
potentially useful changes, discarded the rest, some manual tweaking
required. It did catch lots of pesky indentation mistakes.
2017-01-18 19:48:40 -06:00
jsalling a17372a093 Option to exclude CppUTest compatibility asserts 2017-01-18 08:43:29 -06:00
jsalling 5689da475c Fix bug in DOUBLES_EQUAL in unity_fixture.h 2017-01-14 12:22:00 -06:00
Mark VanderVoord 5572c1e0c2 Merge pull request #242 from jsalling/feature/fixture-test-name
Fixture - Remove duplicate output of test name in verbose mode
2017-01-13 16:38:10 -05:00
jsalling 90b8232bd9 Remove duplicate output of test name, Fixture verbose mode
Remove UNITY_FIXTURES option, which was probably not doing what was
originally indended. It was suppressing the test name even in quiet mode.
2016-12-28 21:18:50 -06: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
Max Payne 08c00bec75 Fix fixture using from C++ sources
Mangling issues, as always.
2016-09-25 22:25:32 +03: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