Zane D. Purvis
cadee02e79
New macros for controlling use of weak linkage
...
- `UNITY_WEAK_ATTRIBUTE`, if defined, is placed before declarations of weakly
linked symbols. If not manually defined, it will be automatically set to
`__attribute__((weak))` on GCC and Clang, except for Clang for Win32.
- `UNITY_WEAK_PRAGMA`, if defined, will cause preprocessor to emit
`#pragma weak setUp`, etc. Ignored if `UNITY_WEAK_ATTRIBUTE` is defined.
- `UNITY_NO_WEAK` undefines both of the above resulting in no weakly
linked symbols.
Work around for ThrowTheSwitch/Unity#93
2014-12-15 16:18:49 -05:00
Mark VanderVoord
4a145c10b3
reworked character strings to be an array type so that storage classes are handled better for picky compilers.
2014-10-26 19:52:17 -04:00
Mark VanderVoord
09e23cea49
- added UNITY_NEW_TEST macro for simpler RUN_TEST creation
2014-10-24 21:12:15 -04:00
Mark VanderVoord
14b074336b
reenable results summary.
...
support tests named spec as well.
clean up UnityBegin to make us not have to dig inside it to inject the filename.
Add UNITY_OUTPUT_START() and UNITY_OUTPUT_COMPLETE() for future use.
2014-07-30 22:12:49 -04:00
Mark VanderVoord
bff1fc68cb
rearranged project to centralize all self-test stuff under test directory. only pull in includes when required.
2014-07-30 10:14:02 -04:00
Mark VanderVoord
3ca172edbb
moved things that should be in internals into internals.
2014-07-29 15:08:49 -04:00
Mark VanderVoord
b5050c6ed3
redirect UNITY_POINTER_WIDTH to define at last catchable moment. Update older gcc targets to be fully explicit.
2014-07-29 13:42:15 -04:00
Mark VanderVoord
16e560147c
further refinement of auto-detecting integer types
2014-07-29 11:56:59 -04:00
Mark VanderVoord
93db16b6dc
- add the rest of the WITHIN integer options (why were those missing? laziness?)
...
- rename the custom FLOAT_TRAIT type because the old name was poor
2014-07-22 13:43:06 -04:00
Mark VanderVoord
a568862a0c
centralize strings for easier maintenance.
2014-07-21 18:52:35 -04:00
Mark VanderVoord
9fe750ba89
finish cleaning up floating point support
...
added macros for IS_DETERMINATE and IS_NOT_DETERMINATE
2014-07-21 16:37:18 -04:00
Mark VanderVoord
a8bd7b5af2
continue to streamline floating point support
2014-07-21 14:38:25 -04:00
Mark VanderVoord
96155881ed
- rework to not bother with any of the ever-changing test frameworks in Ruby (sigh) for self-testing
...
- started working on cleaner floating point support. more coming.
2014-07-21 14:00:53 -04:00
Mark VanderVoord
39cc60ce56
- support "weak" function definitions when available with compiler.
2014-07-08 12:14:26 -04:00
Mark VanderVoord
8f6f34f98a
fixed format tags for u/int assertions
2014-03-07 15:31:52 -05:00
Mark VanderVoord
291c2980e0
Merge pull request #62 from anthonyboorsma/master
...
fixed casts in UNITY_TEST_ASSERT_EQUAL_UINT*. (Thanks Anthony)
2014-03-07 14:47:26 -05:00
Anthony Boorsma
9ddfa74a7e
fixed casts in UNITY_TEST_ASSERT_EQUAL_UINT*. Was previously casting to signed variables and then sign extending the value before casting to final uint and was causing errorneous test failures when executed on arm target
2014-03-06 09:35:32 -05:00
Mark VanderVoord
701ee5101d
fixed another double-float issue: make sure doubles are not both included and excluded.
2014-02-28 15:57:37 -05:00
Mark VanderVoord
bd0d5ecf29
more tweaks (cast to the right type)
2014-02-28 15:47:11 -05:00
Mark VanderVoord
60f0c1a8ae
fixed double calls to actually use double handler instead of float handler
2014-02-28 15:25:02 -05:00
Mark VanderVoord
3399bba27b
- merged in changes by TheGreenDroid to reduce Lint and Compiler warnings
2013-09-22 12:10:42 -04:00
Antony Male
6dd44f23c9
Allow pointer types to have an attribute
...
Microchip's XC16 and friends, when used with dsPICs, require that all pointers
to memory which could possibly be in EDS space by adorned with __eds__, e.g.
__eds__ int* p_int
Adding the macro UNITY_PTR_ATTRIBUTE allows Unity's pointers to be decorated
with whatever ridiculous attributes the compiler requires.
2013-09-17 10:10:43 +01:00
Bryan A. Jones
5b1e9818e2
Fix: Clean up UINTY_xxx_WIDTH detection.
...
Document failing approach (sizeof).
2012-11-29 15:34:09 -06:00
Ross Ryles
b9b18bf547
Added new asserts to check for plus/minus infinity and NaN.
2012-10-30 17:08:43 +00:00
Alex Rodriguez
e95f662683
Fix issue \#7 INTx_WITHIN_MESSAGE() macro
...
The reason that TEST_ASSERT_xyz_WITHIN_MESSAGE() family of functions
doesn't print any message is because is calling a re-use macro from the
TEST_ASSERT_xyz_WITHIN() family of functions. Due this two functions in
unity.h calls the same function from unity_internals.h, the message is
nullified at this point. The issue is fix by passing _message_ arg to
the 4th argument of *UnityAssertNumbersWithin()* function.
2012-08-28 15:06:09 -07:00
John Van Enk
b7d9d007ce
Merge branch 'master' of github.com:ThrowTheSwitch/Unity
...
Conflicts:
src/unity_internals.h
2012-06-20 20:03:36 -04:00
mvandervoord
91ea65ca12
- I've decided to automatically turn on 64-bit support if the pointers, ints, or longs require it.
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@142 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2012-05-28 01:07:35 +00:00
mvandervoord
c4f0537c0c
- changed the default handling to always include stdint unless told to exclude it.
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@140 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2012-05-27 21:54:53 +00:00
mvandervoord
dbdc603024
- further fixes to pointer auto-detect
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@139 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2012-05-27 21:48:49 +00:00
mvandervoord
c1b954eb9d
- added size auto-detection support from limits.h
...
- fixed error in _INT macro size guessing
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@138 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2012-05-27 20:29:33 +00:00
Scott Vokes
4742b5d77a
Change gcc.yml default to gcc_32.yml (explicitly compile for 32-bit target)
2012-04-27 11:53:12 -04:00
Scott Vokes
d0c3f24f4d
If using UNITY_SUPPORT_64, UNITY_POINTER_WIDTH should default to 64 (not 32).
...
Fixes failing test cases on 64-bit OSX: pointers to local variables were
being converted to U32s before comparison.
2012-04-27 10:31:54 -04:00
mvandervoord
d0d5ec5d75
- unity_test_summary script callable from command line again
...
- fixed obj_file sorting in rakefiles
- gave better anchors for gcc to grab on test pass/fail by breaking them out as functions
- fixed minor type issues
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@137 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2012-01-02 21:38:36 +00:00
mvandervoord
3a82e1eeab
- fixed summarizer to handle more generic input
...
- ignore comments in test parser
- fixed a couple bugs in 16-bit support
- fixed minor compiler errors for less lenient compilers
- fixed error in docs.
- renamed link to link_it in rakefiles to avoid collision in new versions of rake
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@136 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-10-11 02:40:04 +00:00
mvandervoord
152e78a4a8
- cleaned up pointer support to handle arrays and to give error when you have an illegal configuration
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@135 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-05-14 15:52:52 +00:00
mvandervoord
504bf2edee
- fixed conditional self-tests
...
- rolled in DOUBLE support from Mark Vismer (thanks!)
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@134 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-05-03 11:05:56 +00:00
mvandervoord
43b4c94f7b
- protect against ints that only have differences in higher nibbles that shouldn't be part of comparison
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@130 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-04-20 11:56:56 +00:00
mvandervoord
4b8d521247
- version file is just going to have major and minor... leave build for the other file (which will hopefully be automatic someday).
...
- only extern the output function when it's custom.
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@113 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2011-01-14 00:54:12 +00:00
mvandervoord
57178b9295
- tweaked parameterized tests to be C99 standards compliant
...
- fixed a few bugs in fixtures to get it to pass against our standard compilers
- added extern of OUTPUT_CHAR method to keep compilers from complaining
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@107 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-12-01 01:56:24 +00:00
mvandervoord
f2ce354f99
- cleaned up test runner problems. again getting ready to support parameterized tests
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@103 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-11-10 16:15:09 +00:00
mvandervoord
7ecafcbe5c
- revert last change until I figure out what I screwed up
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@102 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-11-10 15:35:57 +00:00
mvandervoord
953b55c7e3
- made RUN_TEST so that it doesn't require a custom runTest by default
...
- updated generator to lay simple foundation for parameterized test support
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@101 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-11-10 14:53:34 +00:00
mvandervoord
8f0d259539
- cr/lf marker independent parsing code for summary
...
- removed pointless braces in a couple of macros
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@91 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-08-24 00:12:11 +00:00
mvandervoord
f5ce02f135
- removed pointless cast from UnityPrint
...
- test executable returns number of failures as exit status
- caught up lame text docs
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@90 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-08-13 00:32:34 +00:00
mvandervoord
a9ccd245b0
- added 64 bit support
...
- organized targets into a subdirectory
- cleaned up testing so floats and 64-bit ints are only tested if enabled
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@85 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-07-28 01:06:21 +00:00
mvandervoord
cae66a0054
- added special handlers for int and uint types for when it's important that you have the right size (like INT8_ARRAY)
...
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@75 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-06-09 01:36:55 +00:00
mvandervoord
c3f5b23660
- added string array support
...
- laid foundation for smarter array size handling for integer types
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@74 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-06-06 23:24:36 +00:00
mvandervoord
3fbc034e7d
- restored examples to working condition
...
- restored makefiles to working condition
- updated files to include copyright notice
- fixed bug in string array comparisons
- ignored tests no longer run teardown
- tests failing for uncaught cexceptions now get exception id reported
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@70 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-04-26 01:10:48 +00:00
mvandervoord
54a924571b
- updated color handling by standardizing output
...
- cleaned up internal types
- added verbose float support when sprintf is available and desirable
- tested float array handling (and fixed a bug! woo!)
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@68 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-04-02 18:11:07 +00:00
mvandervoord
4fc9cf594a
- added array handling for smaller integer types
...
- added array handling for floats
- cleaned up filename handling in scripts
git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@67 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
2010-03-30 03:34:09 +00:00