Skip to content

Commit

Permalink
Fix GTest issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Hill (Wireless) committed Sep 16, 2020
1 parent 1ff2a22 commit 870800e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/CppUTestExt/GTestConvertor.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ class GTestDummyResultReporter : public ::testing::ScopedFakeTestPartResultRepor

class GMockTestTerminator : public TestTerminator
{
protected:
virtual void coreExitCurrentTest() {};
public:
GMockTestTerminator(const ::testing::TestPartResult& result) : result_(result)
{
Expand All @@ -207,7 +209,7 @@ class GMockTestTerminator : public TestTerminator
virtual void exitCurrentTest() const
{
/*
* When using GMock, it throws an exception fromt he destructor leaving
* When using GMock, it throws an exception from the destructor leaving
* the system in an unstable state.
* Therefore, when the test fails because of failed gmock expectation
* then don't throw the exception, but let it return. Usually this should
Expand Down

0 comments on commit 870800e

Please sign in to comment.