e12cef36e2
Don't need to ignore unused functions on linux because I reverted the static commit.
2016-09-04 10:47:35 -05:00
8e6716645e
Revert setting functions to static.
2016-09-04 10:38:40 -05:00
2d98ed6afb
Merge branch 'build'
...
Merge build branch.
2016-09-04 10:35:02 -05:00
7ee9bc3ecd
Ignore missing prototype warning.
2016-09-04 10:31:57 -05:00
794e533ab5
Ignore unused functions on linux.
2016-09-04 10:25:31 -05:00
f0f9f20421
Set functions that are only used within testunity to static.
2016-09-04 10:21:06 -05:00
7552c187fb
Ignore missing noreturn and unused functions.
2016-09-04 10:20:31 -05:00
65f0febf03
Ignore padding and float to double implicit warning.
2016-09-04 09:55:49 -05:00
906447f13f
Don't need to print out rake's version anymore.
2016-09-04 09:43:25 -05:00
1dcf902ec2
Don't need sudo on Linux so remove it.
2016-09-04 09:40:30 -05:00
f255511a7c
Test on both Linux and OSX.
...
Switch to C language so we can specify operating systems. We have to install ruby 2.1 via rvm because the ruby interpreter on travis ci crashes when running rake ci, however that same version of ruby works fine on my local machine. This work around adds about 6 Minutes to the build and should be replaced as soon as possible to speed up builds.
2016-09-04 09:34:59 -05:00
647c846f9f
Set CFLAGS differently for linux and osx.
...
Add check for linux and move initial CFLAG settings inside linux check. Add
CFLAGS specific to osx and clang to the existing osx/darwin check. Ignore clang warning about default on covered enum switch, look at pull #217 and pull #177 for more info about why that warning is ignored on clang. Ignore unknown clang options so that I don't have to change CFLAG settings elsewhere in the file, clang should just ignore options it dosen't know about.
2016-09-04 09:25:44 -05:00
68a43b8fe3
Merge pull request #213 from jsalling/feature/simplify-testunity-output
...
Suppress output of FAIL messages that are expected during testing Unity itself. (This one makes me so happy! Thanks!)
2016-09-02 09:10:05 -04:00
de39186187
Add test for C string escape sequences
2016-09-01 01:18:03 -05:00
af590028fa
Unity to print C-style escaped strings as "\x16"
...
Changes from "\0x16" before, makes it easier to copy strings from output
2016-09-01 01:18:03 -05:00
0cc3e45a23
Suppress output of FAIL messages that are expected during testing
...
Works when using the putcharSpy, transparent without it
2016-08-31 20:43:21 -05:00
382c7087f4
Merge pull request #211 from jsalling/feature/testunity-fail-output
...
Make testunity.c failure output uniform
2016-08-31 07:20:34 -04:00
de7627f098
Merge pull request #212 from jsalling/feature/C89-comments
...
Fixture C89 comments
2016-08-31 07:18:36 -04:00
41c2e5889b
Bump the version
...
Floats now pass Infinity == Infinity assertions
2016-08-30 21:51:38 -05:00
da7e375cf9
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
6d54ec2ff7
Get rid of conversion warning when using UNITY_FLOAT_VERBOSE with doubles
...
Change the parameter of UnityPrintFloat from float to double (_UD)
The call to snprintf uses implict default promotion to a double anyway
2016-08-27 15:34:10 -05:00
54aa838c8a
Change the fallback isinf() macro to NOT need f_zero defined
...
Delete old comments from before math.h was the default isinf() method
2016-08-27 15:27:52 -05:00
028ca953d7
Finish checking for equal floats in Arrays functions
...
Refactor to use the same code everywhere for FloatWithin check
Rename and fix a few tests for new behavior, infinity == infinity
2016-08-27 15:12:45 -05:00
a74920d112
Merge pull request #210 from jsalling/feature/int-detection
...
Int width detection without sizeof
2016-08-26 15:03:44 -04:00
268c5b7e0b
Make testunity.c printing uniform during failure, delete word "Previous"
2016-08-25 23:02:11 -05:00
113f2fc32a
Add line numbers to Unity test Runner generated by awk script
2016-08-25 23:01:10 -05:00
28c94bd403
Remove references to UNITY_EXCLUDE_SIZEOF, rework config header
2016-08-25 08:48:29 -05:00
9aa4c7f1aa
Clean up Makefile, move -Wredundant-decls to test build
...
CC always exists inside make so ?= doesn't assign to it
2016-08-25 08:33:15 -05:00
e4e2210eb6
Improving integer width detection
...
The C preprocessor cannot use sizeof in #if etc.
2016-08-25 08:32:42 -05:00
8beb9715be
C89 comment style changes only
2016-08-23 23:10:05 -05:00
3108aba5c7
If two floats happen to be equal, return right away
...
Covers the cases where infinity == infinity
2016-08-23 22:36:02 -05:00
daad2bc82b
removed some newer style comments that crept into the codebase.
2016-08-23 06:46:51 -04:00
75ad84c92f
Merge pull request #209 from jsalling/cleanup/fixture-memory-testing
...
Cleanup fixture memory testing
2016-08-21 13:49:55 -04:00
92f6d5dd08
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
d837342b15
Move free() calls before test asserts, add comments to ReallocFail test
2016-08-21 11:45:54 -05:00
03ac71b8c9
Reorder free calls to free all memory
...
The internal malloc must free in LIFO order
2016-08-21 11:27:47 -05:00
f276c79f9b
Merge branch 'feature/cmd_line_args'
2016-08-11 13:37:51 -04:00
06bae56d30
Revert "Merge pull request #205 from bryongloden/patch-2"
...
This reverts commit 783fcaea97cf11975d75254742e800d7759fdbd0
The guard memory bytes should never be freed inside unity_malloc()
2016-08-09 00:51:38 -05:00
783fcaea97
Merge pull request #205 from bryongloden/patch-2
...
Update unity_fixture.c (Thanks, Bryon!)
2016-08-02 14:55:42 -04:00
fbc20934e0
Merge pull request #206 from bryongloden/patch-3
...
Update unity_fixture_Test.c (Thanks Bryon!)
2016-08-02 14:55:00 -04:00
13160e5f1e
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
4fd5f79f28
Update unity_fixture.c
...
Sorry @mvandervoord -- not your code, your repository 😁
Regarding the double free, cppcheck has a check for that too (just saying) 👍
2016-07-26 19:41:30 -04:00
0737b4117f
Update unity_fixture.c
...
Free guard if UNITY_EXCLUDE_STDLIB_MALLOC is not defined. 👍
Thanks @ for the hint.
2016-07-26 16:02:41 -04:00
094c05e904
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
b1d8388ab8
Update unity_fixture.c
...
[../Unity-master/extras/fixture/src/unity_fixture.c:210]: (error) Memory leak: guard
Found by https://github.com/bryongloden/cppcheck
2016-07-26 14:19:41 -04:00
57676b5edc
- Fixed cases with wildcards in file handling.
2016-07-17 19:11:09 -04:00
ad0c07c9ad
Merge pull request #204 from dmurdin/tms470
...
Weak attribute fix for TMS470 Compilers.
2016-07-13 06:49:48 -04:00
cec38d13d3
Merge pull request #203 from dmurdin/pathslash
...
Escape backslashes for windows paths, fixes #137 .
2016-07-13 06:48:57 -04:00
f1a4a5e652
Weak attribute fix for TMS470 Compilers.
...
Change-Id: I901bf192d3c06457d67c6d3a64bdb9aea22c53c2
2016-07-13 10:36:43 +02:00
44c429bd8b
Escape backslashes for windows paths, fixes #137 .
...
Change-Id: I2dbae30e21ab31921817f68fd7a5e08d21c76626
2016-07-13 10:31:52 +02:00