Skip to content

Commit

Permalink
Use the current Test Terminator rather than the hard coded version
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Hill (Wireless) committed Dec 9, 2022
1 parent 7a7200e commit 5d76cbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CppUTest/MemoryLeakWarningPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ class MemoryLeakWarningReporter: public MemoryLeakFailure
virtual void fail(char* fail_string) _override
{
UtestShell* currentTest = UtestShell::getCurrent();
currentTest->failWith(FailFailure(currentTest, currentTest->getName().asCharString(), currentTest->getLineNumber(), fail_string), TestTerminatorWithoutExceptions());
currentTest->failWith(FailFailure(currentTest, currentTest->getName().asCharString(), currentTest->getLineNumber(), fail_string), UtestShell::getCurrentTestTerminatorWithoutExceptions());
} // LCOV_EXCL_LINE
};

Expand Down

0 comments on commit 5d76cbe

Please sign in to comment.