I'm not saying its not a bug, but usually this odd behavior if because
of something in the code under test. I would be suspecting a bad
pointer, or a buffer/struct overflow or underflow leading to some
undefined C behavior.
See if you can get some more information if you do these things, adding
one at a time:
1 Turn on verbose with -v. This should tell you which test case is
failing, unless of course this chanciness the undefined behavior. If
the failure happens now, go to step 2. If no failure try step 4
2 Now that you know the test case, only run that one test case using the
-n testNameSubstring option. If you still get the failure, try to
whittle down the code involved and see if you can establish cause and
effect
3 If 1 fails and two does not fail try the -g groupNameSubstring option
instead of the -n option to run the whole test group. If still no
failure, be less selective on the group name to try to run more groups
4 Start splitting your list of test files in half and running the tests,
find a subset of test cases that show the problem, then whittle down.
Let us know how it goes. You might need to get a debugger out, but if
it is the result of a bad pointer and undefined behavior it can be
difficult to track down.
James
--------------------------------------------------------------------------
James Grenning - Author of TDD for Embedded C -
wingman-sw.com/tddec
wingman-sw.com
wingman-sw.com/blog
twitter.com/jwgrenning
facebook.com/wingman.sw
> --
> 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.