Skip to content

Commit

Permalink
Merge pull request cpputest#1716 from CiderMan/support-crashing-mode-…
Browse files Browse the repository at this point in the history
…in-mem-leak-checker

Use the currently configured Test Terminator rather than a hard coded version
  • Loading branch information
basvodde authored Dec 9, 2022
2 parents 9a75163 + 5d76cbe commit c02ec75
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 c02ec75

Please sign in to comment.