837 Commits

Author SHA1 Message Date
a6e9f85f71 Added examples for the configuration of UnityPrintFormatted and exclusion of <stddef.h> 2019-01-25 07:01:29 +01:00
92a345b264 Added documentation and changed all the code examples to backtick (code) blocks. 2019-01-24 20:12:16 +01:00
4f8656f658 Added some documentation for the helper function. 2019-01-24 19:22:01 +01:00
95ccc6edc1 Changed the compiler switch behaviour for printf (default: disabled).
Macro UNITY_EXCLUDE_PRINT_FORMATTED changed to UNITY_INCLUDE_PRINT_FORMATTED.
Enable printf via "-DUNITY_INCLUDE_PRINT_FORMATTED" compiler option.
2019-01-24 18:42:51 +01:00
5918ee0cdf Merge branch 'master' into feature-printf
# Conflicts:
#	src/unity.c
2019-01-24 18:32:07 +01:00
a284984365 Merge pull request #382 from dpostorivo/ifndef-64-runner
Generate runner defines with #ifndef guards
2018-12-21 23:12:59 -05:00
516f7be045 generate runner defines with #ifndef guards 2018-12-21 22:37:11 -05:00
38d8263741 Merge pull request #380 from elliot-gawthrop/test-case-string
Add support for strings in TEST_CASE()
2018-12-11 06:56:47 -05:00
5db2a3dbd9 Add support for strings in TEST_CASE() 2018-12-10 20:53:27 +00:00
f433480f7f Merge pull request #299 from jlindgren90/float-printing
Allow UnityPrintFloat() to print a 7th digit.
2018-11-28 15:27:37 -05:00
8e0f54d23b Merge pull request #375 from jlindgren90/int-min-printing
Fix undefined behavior when printing INT_MIN/INT64_MIN. (Thanks @jlindgren90 !)
2018-11-28 15:23:03 -05:00
d09f4953ff Fix another signed integer overflow. 2018-11-28 15:17:25 -05:00
8a77f48634 Fix undefined behavior when printing INT_MIN/INT64_MIN.
Negating the most-negative signed integer results in overflow, which
is undefined behavior.  Fix this by casting to an unsigned type first
(unsigned overflow is well-defined as it uses modular arithmetic).
2018-11-28 14:45:23 -05:00
39fbd13cae Merge branch 'master' into float-printing 2018-11-28 14:02:41 -05:00
58be52f088 Merge pull request #374 from jlindgren90/rubocop
Fix (most) Rubocop warnings. (Thanks @jlindgren90 !!!!)
2018-11-28 13:42:51 -05:00
5cd1c33b0e Fix uninitialized constant 2018-11-28 13:36:27 -05:00
6b657c6f17 Fix (most) Rubocop warnings. 2018-11-28 13:27:00 -05:00
28bf7954f2 Merge pull request #364 from farrrb/fix-issue-360
Fixed an "array index out of bounds violation" in the examples. (Thanks @farrrb )
2018-11-14 06:17:38 -05:00
e8ba63cf7b Merge pull request #370 from danyeaw/license-location
Move license for GitHub detection
2018-11-14 06:09:10 -05:00
100c73d37f Move license for GitHub detection 2018-11-13 21:07:05 -05:00
eab9283a98 Merge pull request #353 from kykrueger/issue-#352-uninitialized-value-warning
Issue #352 uninitialized value warning
2018-11-07 09:22:46 -05:00
7dd21c333e Fix unintended array overrun in example (#360. Thanks @quantum-leaps) 2018-11-02 07:42:47 -04:00
695dd04d53 Merge pull request #365 from Kochise/patch-2
Patch 2 (Thanks, @Kochise !)
2018-10-31 07:13:30 -04:00
27f631aaa8 Merge pull request #366 from Kochise/patch-1
Some cleanup (Thanks, @Kochise !)
2018-10-31 06:48:32 -04:00
50ce8a880a Some cleanup 2018-10-31 11:41:44 +01:00
96127581a0 Some cleanup 2018-10-31 11:30:13 +01:00
be765649f1 Some cleanup 2018-10-31 11:24:37 +01:00
f1100dd19a Added support for %b (bits / binary), %f (float) and %g (double). 2018-10-27 18:21:01 +02:00
b4ab81bbe9 Added first working implementation. 2018-10-27 16:06:38 +02:00
e84cb29acc Fixed an "array index out of bounds violation" in the examples (regarding issue #360). 2018-10-27 11:24:29 +02:00
7d2bf62b7e Merge pull request #363 from Deltrix/patch-1
Changed some text issues (Thanks @Delrix)
2018-10-22 10:42:30 -04:00
01cbce870a Changed some text issues 2018-10-22 15:32:22 +02:00
e4dfeaa14d Merge pull request #362 from meslem12/patch-1
fixed compile error UNITY_PRINT_EXEC_TIME(). Thanks @meslem12 !
2018-10-18 22:58:40 -04:00
7cc3cf478b fixed compile error UNITY_PRINT_EXEC_TIME() 2018-10-18 23:55:38 +02:00
e025b8cd1d Merge pull request #359 from farrrb/fix-include-stddef
Issue #317 - unity.h should include <stddef.h>
2018-10-14 16:24:19 -04:00
e2e549a22f Added include of 'stddef.h' to 'unity_internals.h' if 'UNITY_EXCLUDE_STDDEF_H' is not defined. This adds compiler independent support for the 'NULL' macro. 2018-10-14 14:11:22 +02:00
e0d52d1a79 fix uninitialzed value warning 2018-09-12 17:46:11 +02:00
bfd7828e66 Merge pull request #1 from ThrowTheSwitch/master
Get up to date
2018-09-07 14:10:47 +02:00
9987824da7 Added support to inject "extern C" into runners when generated. 2018-08-09 08:48:08 -04:00
031f3bbe45 Merge pull request #340 from elliot-gawthrop/unit-test-execution-time
Print execution time for each test when verbose mode enabled (Thanks @elliot-gawthrop, @shreyasbharath, and everyone who participated in this one!)
2018-08-08 08:24:46 -04:00
a6a35b78ae Merge pull request #341 from Deryew/master
Fixed some grammar errors on docs (Thanks @Deryew !)
2018-08-08 07:05:47 -04:00
e72dfafd44 Fixed some grammar errors on docs
Fixed grammar errors and some sentences to make it easier to understand
2018-07-30 10:53:02 +08:00
fb4b139043 Fixed UNITY_EXEC_TIME_STOP macro ifdef 2018-07-28 20:14:00 +01:00
f0e4571c96 Merge branch 'master' into unit-test-execution-time 2018-07-28 20:01:50 +01:00
ccb7faf3bd Merge pull request #338 from rstahn/bugfix-less-or-equal
Fix LESS_OR_EQUAL_MESSAGE asserts for HEX32/HEX64 (#337)
2018-07-26 16:18:32 -04:00
18e4fbe2ae Merge pull request #335 from rstahn/patch-1
Added notes on _MESSAGE assertions in UnityAssertionsReference.md
2018-07-26 09:12:11 -04:00
6a1d2e8d44 Fix LESS_OR_EQUAL_MESSAGE asserts for HEX32/HEX64
Macros TEST_ASSERT_LESS_OR_EQUAL_HEX32_MESSAGE() and TEST_ASSERT_LESS_OR_EQUAL_HEX64_MESSAGE() need to be mapped to UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_HEXnn() instead of UNITY_TEST_ASSERT_SMALLER_THAN_HEXnn()
2018-07-25 22:57:44 +02:00
ac3cde30f5 Added notes on _MESSAGE assertions (#331)
Added notes, why _MESSAGE assertions do not support printf style formatting and how users can work around this limitation (see #331)
2018-07-21 16:57:53 +02:00
1f6c782040 Merge pull request #334 from Xenoamor/master
Flush unity output before a longjmp (Thanks! this is a good change)
2018-07-18 11:54:03 -04:00
2c5d09bf20 Flush unity output before a potential longjmp
Flush the unity stdout buffer before calling TEST_ABORT().
This is because if TEST_PROTECT() has not previously been called this will cause a segmentation fault and the stdout buffer will fail to print

Although the segmentation fault will still occur, the error that caused it will at least be displayed
2018-07-18 16:34:14 +01:00