15 Dec 2010, 16:38
Generic-user-small

Alex Rodriguez (6 posts)

So, I just downloaded the code (12/15/10) and followed instructions found in the readme files but for my surprise I got error no finding “CC”, and incompatible types in the unity test. So I when hunting and I believe a fix all issues, i think.

1) first I read this post http://forums.pragprog.com/forums/123/topics/8219 and fix the code issues.

2) replace the CppUTest with the one from svn(r596), because the one that comes with the source code didn’t work.

3) modified the MakefileWorker.mk from unity located @ .\unity\hardness\build\, pretty much I included the same kludge included in the cpputest version.

#Kludge for mingw, it does not have cc.exe, but gcc.exe will do ifneq ($(findstring mingw,$(PATH)), "") CC := gcc endif

4) modified testunity.c, @ unity\code\unity\ * line 693 from:

EXPECT_ABORT_BEGIN TEST_ASSERT_UINT_WITHIN(1, 2147483647, 2147483649); EXPECT_ABORT_END to: EXPECT_ABORT_BEGIN TEST_ASSERT_UINT_WITHIN(1, 2147483647U, 2147483649U); EXPECT_ABORT_END * same for function testHEX32sNotWithinDelta(..) * in general it is complaining about ISO C90 variables, that used to be uints by default and now are ints, or something like that.
15 Dec 2010, 16:39
Generic-user-small

Alex Rodriguez (6 posts)

Sorry, I don’t know why it isn’t show a pretty formatting. chrome issue?

16 Dec 2010, 02:27
James2009_pragsmall

James Grenning (130 posts)

Alex

you can add a br tag after each line

James

  You must be logged in to comment