Jarek K.
unread,Jan 25, 2011, 10:21:04 AM1/25/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google C++ Testing Framework
Hi all,
I have a problem with my tests. I'm trying to test some function, lets
say foo(),
and within this function there is some null checking done at the very
beginning and if some of the pointers are null
function void crash() is called which causes to reset the box. I would
like to stub crash() for my testing purposes
so that whenever it is called the particular test would be aborted
with failure (only this test not whole suite).
I tried to put GTEST_FAIL() macro in crash() and the test fails
alright but it continues to run which causes that test writes that all
assertions and expectations fail. Is there any way to abort the test
and continue to the next one?
Thanks.
J.