calvert1991 / googlemock

Automatically exported from code.google.com/p/googlemock
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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