Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Must not raise extra failures when Google Test has thrown GoogleTestFailureException. #133

Open
GoogleCodeExporter opened this issue Apr 2, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

From the user's email:
http://groups.google.com/group/googlemock/browse_thread/thread/73036ce99f96d82a

When gMock reports a failure, it results in throwing GoogleTestFailureException 
if it is being used with a third-party tets framework and the 
--gtest_throw_on_failure flag. In this case, the remaining mocks will verify 
their expectations from destructors during the stack unwinding. They will also 
throw GoogleTestFailureException, resulting in the program calling terminate().

It looks like mocks should not verify their expectation during the stack 
unwinding after GoogleTestFailureException is thrown. On Linux, this should be 
done in a thread-safe manner.

Original issue reported on code.google.com by vladlosev on 13 Nov 2010 at 3:07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant