Hi Justin
Can you show the whole test case and dependeices?
For instance palFLASHInstance: how is it declared and how is it defined?
Is palFLASHInstance on the stack?
Cheers, James
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/cpputest/405d0f38-d593-497f-bc67-c47cdddba1a2n%40googlegroups.com.
![]() |
wingman-sw.com blog.wingman-sw.com @jwgrenning facebook.com/wingman.sw |
To view this discussion on the web visit https://groups.google.com/d/msgid/cpputest/6D0BEF01-18EA-41D9-84FD-435B02A44429%40grenning.net.
If you take the CHECK out, there is no corruption?
What is outbuf? Is it written to? Where is it declared, defined, initialized? Its name implies that stuff is written there.
I've looked into the CHECK_TRUE macro and the value is simply passed through. I suspect some memory corruption.
You might experiment one at a time:
Move the TEST_GROUP data to file scope
Comment out the memcpy in setup
To view this discussion on the web visit https://groups.google.com/d/msgid/cpputest/75C0594E-899D-4AD3-94EA-E5B75CFEA9FC%40grenning.net.
Justin
Good to hear you are on your way. You just experienced a handy thing about test cases. You can make experiments to gather facts.
Cheers, James
To view this discussion on the web visit https://groups.google.com/d/msgid/cpputest/75C0594E-899D-4AD3-94EA-E5B75CFEA9FC%40grenning.net.