1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-23 08:25:58 +01:00
Commit Graph

597 Commits

Author SHA1 Message Date
Mark VanderVoord
8e31f5d869 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
Mark VanderVoord
b77c6b833f Merge pull request #232 from mchernosky/module-create-with-subdir
Fixed error when path provided in module name.
2016-11-29 06:50:54 -05:00
Matt Chernosky
37049a3a20 Fixed error when path provided with module name. 2016-11-28 23:57:17 -07:00
Mark VanderVoord
4386cf356f Added to Module Generator:
- configurable case.
- better passing of includes and boilerplate information
- test only pattern
- optional naming conventions for case
2016-11-22 14:24:24 -05:00
Mark VanderVoord
4e2f0381cc Add ability to inject correct mock prefix 2016-11-21 15:19:16 -05:00
Mark VanderVoord
012064eaea Merge pull request #228 from jeanCarloMachado/test_failure
removed duplicated declaration of putcharSpy
2016-11-16 20:31:40 -05:00
Jean Carlo Machado
4faae4435d removed duplicated declaration of putcharSpy 2016-11-16 21:37:51 -02:00
Mark VanderVoord
ac455f2798 We can’t guarantee that the built-in function insane will return 1. It might return any other non-negative value. Therefore we need to force it to be 1 so we can use the comparison operator later. 2016-11-15 09:29:08 -05:00
Mark VanderVoord
ae5b4c5799 Added ability to inject defines, much like what was built into Ceedling before Ceedling switched to just using this generator. 2016-11-10 10:10:13 -05:00
Mark VanderVoord
661c1b2d56 Boost version and remove some debug puts statements v2.4.0 2016-10-27 23:06:18 -04:00
Mark VanderVoord
2ce8618014 refactor generate_module so that it can be called as a class from within Ceedling (much like the test runner generator) 2016-10-27 17:33:13 -04:00
Mark VanderVoord
bbf2fe3a93 Merge pull request #227 from jsalling/bugfix/fixture-verbose-eol
Remove extra newline in verbose output format of Fixture
2016-10-12 06:55:43 -04:00
Mark VanderVoord
4ce86fd1c0 Merge pull request #226 from jsalling/feature/nan-not-eq-nan
Add option to set NaN not equal NaN for floating point assertions
2016-10-12 06:54:38 -04:00
jsalling
3e30290367 Remove extra newline in verbose output format of fixture 2016-10-10 23:10:40 -05:00
jsalling
933cc97364 Add option to set NaN != NaN for floating point assertions 2016-10-10 21:20:10 -05:00
Mark VanderVoord
1129b18ced Merge pull request #225 from kykrueger/master
Fix bug, makefiles for example do not clean on windows
2016-10-06 06:54:36 -04:00
kykrueger
03b9eaa9ba Fix bug, makefiles for example do not clean on windows 2016-10-06 11:00:22 +02:00
Mark VanderVoord
a912ee364e Merge pull request #223 from jeremyhannon/checkLimitBeforeUsingIndex
check 'i' limit before using it as an array index.
2016-09-26 23:09:35 -04:00
Jeremy Hannon
148b4977cf check 'i' limit before using it as an array index.
fix cppcheck "Array index 'i' is used before limits check."
2016-09-26 16:01:03 -05:00
Mark VanderVoord
3581ebb69e Merge pull request #222 from forGGe/missing_c_linkage
Fix fixture using from C++ sources
2016-09-26 08:43:53 -04:00
Max Payne
a8e799b066 Fix fixture using from C++ sources
Mangling issues, as always.
2016-09-25 22:25:32 +03:00
Mark VanderVoord
dce6d329ff Finished fixing floating point comparisons. We have streamlined how floats and doubles are checked, but we still can't compare them for equality directly. So we're directly testing for infinite and NaN before checking diffs. Also, we've officially decided that for testing purposes NaN shall equal NaN, +Inf shall equal +Inf, and -Inf shall equal -Inf. It's what most people expect during a test. 2016-09-22 08:35:22 -04:00
Mark VanderVoord
0f07adfa00 Merge pull request #202 from kroesche/feature/fix_exclude_fp_warnings
Fix warnings if you use UNITY_EXCLUDE_FLOAT
2016-09-21 20:53:45 -04:00
Mark VanderVoord
7dc17efbb3 Merge pull request #215 from jsalling/bugfix/inf-equals-inf
Bugfix Inf equals Inf
2016-09-21 20:52:58 -04:00
Mark VanderVoord
71f2e0e6b3 Merge pull request #221 from robobrobro/master
Test generator: scrub strings after comments
2016-09-21 15:55:41 -04:00
L.J. Hill
bc4da247b5 Do not match strings across newlines 2016-09-21 15:10:43 -04:00
L.J. Hill
9caae856c4 Test generator: scrub strings after comments
This fixes #220.

Removing strings from test files is still dangerous, but much
less likely to cause problems after this change to do the
removal after removing comments.

The bug could still manifest if a test file contains defines two
macros, one that contains a single quotation mark and then another
defined somewhere after it that contains a single quotation mark.
Everything in between the aforementioned quotation marks would
still be ignored after this commit, but that is an unlikely
scenario.
2016-09-21 14:20:29 -04:00
Mark VanderVoord
693169eddf Merge pull request #218 from 2trill2spill/master
Add OSX to travis-ci build.
2016-09-20 14:31:45 -04:00
Mark VanderVoord
95435afa4e Merge pull request #214 from jsalling/feature/c-strings
Print escapes for C strings
2016-09-07 07:48:09 -04:00
nah
e12cef36e2 Don't need to ignore unused functions on linux because I reverted the static commit. 2016-09-04 10:47:35 -05:00
nah
8e6716645e Revert setting functions to static. 2016-09-04 10:38:40 -05:00
nah
2d98ed6afb Merge branch 'build'
Merge build branch.
2016-09-04 10:35:02 -05:00
nah
7ee9bc3ecd Ignore missing prototype warning. 2016-09-04 10:31:57 -05:00
nah
794e533ab5 Ignore unused functions on linux. 2016-09-04 10:25:31 -05:00
nah
f0f9f20421 Set functions that are only used within testunity to static. 2016-09-04 10:21:06 -05:00
nah
7552c187fb Ignore missing noreturn and unused functions. 2016-09-04 10:20:31 -05:00
nah
65f0febf03 Ignore padding and float to double implicit warning. 2016-09-04 09:55:49 -05:00
nah
906447f13f Don't need to print out rake's version anymore. 2016-09-04 09:43:25 -05:00
nah
1dcf902ec2 Don't need sudo on Linux so remove it. 2016-09-04 09:40:30 -05:00
nah
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
nah
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
Mark VanderVoord
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
jsalling
de39186187 Add test for C string escape sequences 2016-09-01 01:18:03 -05:00
jsalling
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
jsalling
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
Mark VanderVoord
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
Mark VanderVoord
de7627f098 Merge pull request #212 from jsalling/feature/C89-comments
Fixture C89 comments
2016-08-31 07:18:36 -04:00
jsalling
41c2e5889b Bump the version
Floats now pass Infinity == Infinity assertions
2016-08-30 21:51:38 -05:00
jsalling
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
jsalling
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