Hi Milrren,
You can absolutely use CppUTest for C. I’ve done this on several occasions. You get the advantage of being able to write OO-style tests, even for non-OO code, and I love the test ‘uato-detection’ – you don’t have to register tests as they get ‘magically’ found. The only caveat is that you do need to manage the interface between C and C++ carefully – on one project it was trivial, on another I had to create a sort of ‘buffer’ zone / wrapper when calling from C++ to C, but that was likely as much due to my ignorance of how to do it properly as to any more serious problem – and in any case, it worked in the end.
As to installation – download, follow the INSTALL file instuctions and it ought to work. I do recall having a problem moving from 3.5 to 3.6 (or possibly 3.6 to 3.7) with autoconfigure, but found a way around it which was discussed on this alias so should be in the archive.
Hope that helps,
William
--
You received this message because you are subscribed to the Google Groups "cpputest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cpputest+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.