{
Foo(2, 1);
EXPECT_DEATH(Foo(1, 2), "");
...
}
>
> When assert(false) is executed, not only the test crash, but all the
> tests program crash.
> How can I do to continue the execution of the test program with this
> test marked as "failed" ?
> I maybe forget something about deathtest or an execution flag or
> something else..
>
--
Zhanyong
--
Zhanyong
No, we don't have such a flag. (BTW, I think you mean process instead
of thread.)
> (I use googletest to make large/fonctional tests not unit test, so I don't
> have control on everything. There are many "assert" in the code, so I can't
> put a death test on every statement)
I'd say don't worry about it unless it's a real problem. It would be
nice if the assert doesn't crash the entire test program, but how
often does it happen? If it happens a lot, you probably have a bigger
problem to worry about.
--
Zhanyong