329 Commits

Author SHA1 Message Date
79ea2883a9 Merge pull request #46 from canton7/feature/hex-array-test-fixes
Fix unit tests for TEST_ASSERT_EQUAL_HEX_ARRAY on 16-bit architectures (Thanks Antony!)
2013-09-17 04:19:10 -07:00
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
e4727092e8 Added Eclipse error parsers 2013-09-05 19:12:26 +10:00
8ca802d4dc Updated examples
*  Renamed example x to example 3
2013-07-19 21:30:35 +10:00
d27699d97a Updated examples
*  Updated example 2 readme
 *  Broke up huge line in example 2 makefile
2013-07-17 23:27:25 +10:00
efc1df828f Added example
*  Added example that uses unity test fixture
2013-07-17 23:23:09 +10:00
1b9b197298 Added another example
*  Simple makefile example, extracted from existing example
2013-07-17 22:48:50 +10:00
5932565bae Updated example
*  Moved existing example to its own directory, with the intention of adding more examples
 *  Existing example uses its own .yml file instead of one of the files in targets/.
2013-07-17 22:42:43 +10:00
843370a7c2 Updated example makefile
*  Make would fail due to missing build directory. Now it doesn't try to delete build/
2013-07-17 22:14:47 +10:00
29812f3f5b Merge pull request #49 from uozuAho/master
Fixed examples build error (rake)
2013-07-14 13:20:26 -07:00
53a5ae92c1 Updated examples rakefile
*  Build directory created if it doesn't exist. This fixes a gcc "no such file or directory" error when running rake
2013-07-14 20:37:39 +10:00
6f49140354 Merge pull request #47 from canton7/feature/memory-array-test-fixes
Fix tests testing TEST_ASSERT_EQUAL_MEMORY_ARRAY on 16-bit platforms. (Thanks Antony!)
2013-06-28 04:50:42 -07:00
6bff2eb938 Merge pull request #45 from canton7/feature/16bitIntArrayEqual
Fix TEST_ASSERT_EQUAL_INT_ARRAY for int sizes other than 32 bits (Thanks Canton7)
2013-06-28 04:49:09 -07:00
2b484e4239 Fix tests testing TEST_ASSERT_EQUAL_MEMORY_ARRAY on 16-bit platforms
The tests which exercise TEST_ASSERT_EQUAL_MEMORY_ARRAY use int arrays,
and hard-code the size of each element as 4 bytes. This is of course
untrue on 16-bit platforms.

Replace this hard-coded value with sizeof(int).
2013-06-28 11:12:59 +01:00
318dc8f35a Fix unit tests for TEST_ASSERT_EQUAL_HEX_ARRAY on 16-bit architectures
Previously, TEST_ASSERT_EQUAL_HEX_ARRAY was being called, and passed
arrays of type 'unsigned int'. TEST_ASSERT_EQUAL_HEX_ARRAY is an alias
for TEST_ASSERT_EQUAL_HEX32_ARRAY in *all* cases (and is documented as
such), while 'unsigned int' is 16 bits on some platforms. Unsurprisingly
this caused some tests to fail.

Fix by replacing the 'unsigned int' declarations with '_UU32'.
2013-06-28 10:59:23 +01:00
07736afe63 Fix TEST_ASSERT_EQUAL_INT_ARRAY for int sizes other than 32 bits
This patch fixes testEqualIntArrays in the unity test suite on 16-bit
architectures.

TEST_ASSERT_EQUAL_INT_ARRAY calls UnityAssertEqualIntArray with 'style'
set to UNITY_DISPLAY_STYLE_INT.

UNITY_DISPLAY_STYLE_INT is defined as UNITY_DISPLAY_STYLE_AUTO +
UNITY_DISPLAY_STYLE_INT{16,32,64} (depending on the int width).

However, the switch statement in UnityAssertEqualIntArray has special
cases for the width-specific display styles, but these comparisons
are carried out without clearing the UNITY_DISPLAY_STYLE_AUTO flag.
This means that if 'style' is UNITY_DISPLAY_STYLE_INT, and the int
width is, say, 16, bits, the default case will be hit, and elements
compared as if they were 32 bits wide. Unsurprisingly this causes
a failure in the test named above.
2013-06-28 09:34:49 +01:00
4460fc50f1 Update generate_test_runner.rb
Bug - compilation error when using parametrized tests with user defined types. When using TEST_CASE and parametrised test and passing parameters which are of user defined types, the test_runner does not compile because it does not recognize the user defined types.
Test runner should copy the include statements from the test file
2013-06-21 20:23:24 +03:00
19c405ff95 One more edit to build under cygwin 2013-04-12 15:01:13 -05:00
c54145145f A small change to the makefile so that it builds in a cygwin environment 2013-04-12 13:18:32 -05:00
770789e9c1 Merge pull request #36 from aguegu/master
fix bug in target execsion in example makefile
2013-03-25 06:23:22 -07:00
356b43d1c2 add './' to in example makefile, since . may not be included in PATH 2013-03-25 16:05:30 +08:00
12d3d8eebc Merge branch 'master' of https://github.com/ThrowTheSwitch/Unity 2013-03-04 21:22:09 -06:00
5e401afa83 updating CLI for unity_fixture.h to handle unknown command line arguments (instead of entering an infinite loop) 2013-03-04 14:35:18 -06:00
ad3861ab43 set test-unit constraint to try to get it to work with ruby 1.8 2013-02-14 09:51:37 -05:00
56ed87fa45 debugging build failure on ruby 1.8 2013-02-14 09:37:39 -05:00
307363db28 debugging build failure on ruby 1.8 2013-02-14 09:14:53 -05:00
baad1dfa42 Merge branch 'master' of github.com:ThrowTheSwitch/Unity 2013-02-14 09:05:54 -05:00
08b80dcbd1 added Gemfile 2013-02-14 09:04:33 -05:00
af76099975 Merge pull request #32 from alejmrm/missing_defs4uf_ud
Fix missing #define when UNITY_EXCLUDE_FLOAT is used
2013-02-06 17:01:53 -08:00
6181bedcd3 Merge pull request #33 from hoodja/master
Fixing wrong index on string array inequality.
2013-02-06 16:54:30 -08:00
5429d508a6 Merge pull request #30 from TheCount/feature-gcc-64
Added gcc 64-bit for rake
2013-02-06 16:52:25 -08:00
6ff4ee8225 Merge pull request #31 from chrisdew/master
The `build` directory is not created when running make, which yields an error.
2013-02-06 16:49:57 -08:00
b8d47ff2a3 report correct (zero-based) index in string array equality mismatch 2013-02-06 09:58:21 -06:00
ef37c6bc60 fix missing #define when UNIT_EXCLUDE_FLOAT is used 2013-02-04 17:03:31 -07:00
726227b1b7 Update makefile
The `build` directory is not created when running make, which yields an error.
2013-02-01 12:47:02 +00:00
e88bc7957f Merge remote-tracking branch 'upstream/master' 2013-01-18 11:01:36 -07:00
5417e1baf3 gcc 64-bit target 2013-01-17 13:44:05 +01:00
5ad372b6b3 Merge pull request #15 from vsayer/master
fixed makefile to testunity.out in root directory
2013-01-15 07:49:46 -08:00
7846b50a0a Merge pull request #29 from bjones1/master
C89 patch for MS Visual Studio 2008 Express Edition
2013-01-11 11:54:56 -08:00
4817d78de3 Fix: Declare all variables before statements in a function.
Likewise, place all function prototypes before statements.
     These changes support Microsoft Visual Studio 2008 Express Edition,
       which follows C89-style rules.
2013-01-11 12:56:15 -06:00
cfc35610b4 Merge pull request #27 from bjones1/master
Fix: Corrected type of size in GuardBytes to be size_t, not int.
2013-01-09 19:49:45 -08:00
146dfa3b2d Fix: Corrected type of size in GuardBytes to be size_t, not int. 2013-01-09 09:54:29 -06:00
c3475a7397 Merge pull request #25 from malsyned/fixture_fixes
Updates to make Fixture more useful (thanks malsyned! It's nice that someone is helping out with the Fixtures extension!)
2013-01-09 05:10:34 -08:00
16290a5490 Merge pull request #23 from bjones1/master
Thanks, Bryan.  It's nice to have better documentation (Int config options, in this case)
2013-01-09 05:07:35 -08:00
47bf32edd6 Made unity_fixture IGNORE_TEST() respect the -v verbose flag.
More details here: http://forums.pragprog.com/forums/123/topics/10126
2012-12-21 16:07:49 -05:00
e21881c53f Fixed a unity_fixture bug that prevented IGNORE_TEST from properly counting ignored tests.
More details here: http://forums.pragprog.com/forums/123/topics/10126
2012-12-21 16:00:11 -05:00
601459a5c2 Fixed compilation warning in unity_fixture.c with optimization on.
More details here: http://forums.pragprog.com/forums/123/topics/10901
2012-12-21 15:32:29 -05:00
9d84912761 Ensured unity_fixture tests pass 2012-12-21 15:07:09 -05:00
bc251726b6 Add: Additional documentation for Unity configuration options. 2012-12-03 11:36:45 -06:00
c6c4c43ee3 Merge pull request #21 from bjones1/master
I love it when things are made clean! Bryan A Jones smooths out some wrinkles in WIDTH detection.
2012-11-29 18:38:27 -08:00