Hi A. Robert,
Yes, I don't think it is in the book. You can configure CppUTest without exception handling/StdC++ lib via "configure -disable-std-cpp"
You can get the configure option via "configure --help".
Hiya,
> I am working with CppUTest 3.3
Oki, that explains. We changed the build quite a lot in 3.4 to have a more standard interface for Open Source projects…
Uhm, with 3.3 you needed to do -DDISABLE_MEMORY_LEAK_DETECTION or something like that (not remember, better use 3.4 :P)
Bas
Good morning Bas,
First of all, I really appreciate your taking the time to "talk" to me.
> So, you might want to re-consider running most unit tests on the hardware :)
Oh, yes. Anytime. The reason I am into the hardware is my client.
There is a growing sentiment in the automobile industry here in Germany that unit tests should pass on the actual hardware, especially where functional safety is concerned.
So I suggested they use an approach with TDD approach off target, and run a subset of unit tests on the hardware only before releases.
Which, unfortunately, still means running CppUTest on the hardware...
> You want to switch off the Standard C++ library.
Will do.
> If you do that, it will turn off exception handling.
Good. TI promises a quantum performance hit just for enabling it ;-).
> Did you try outputting with fprintf to stderr (so that it won't be buffered)?
Actually, no, but I switched from cout to printf() for my "pilot" unit test and the problems went away. So using the Standard C++ Library on that system does not seem like a good idea anyway.
> I'm not sure what IDE you are using?
Although Code Composer Studio is Eclipse-based nowadays, my client insists on using CCS 3.3. It has quite a few quirks, but mostly works okay. Under Windows, I use Code::Blocks / MinGW for most things. I am used to hand-editing project files. So I will stick in the #define and see where that gets me.
> btw. I do work quite a lot on TI environments
I have done some work with the cc430 (sport's watch flavor) and the IAR IDE and that was a piece of cake, in comparison. It was my own work, so I never attempted to run CppUTest on the hardware. But all else was easier to begin with. For the few unit test that I felt I wanted to run on the hardware, I used plain C. I designed an "applet" to run them interactively from the watch's UI. Neat.
The TMS320F2335 DSP, on the other hand, is definitely not for the faint-hearted....
Well, thanks again, I will now build CppUTest without the Standard C++ Library and then let you know how it went.
Best wishes,
A. Robert