ResultCapture -> RunContext

This commit is contained in:
Phil Nash
2015-11-19 17:45:56 +00:00
parent b77b45a390
commit 73968f29a5
10 changed files with 24 additions and 24 deletions

View File

@@ -15,8 +15,8 @@ namespace Catch {
// Report the error condition then exit the process
inline void fatal( std::string const& message, int exitCode ) {
IContext& context = Catch::getCurrentContext();
IResultCapture* resultCapture = context.getResultCapture();
resultCapture->handleFatalErrorCondition( message );
IRunContext* runContext = context.getCurrentRunContext();
runContext->handleFatalErrorCondition( message );
if( Catch::alwaysTrue() ) // avoids "no return" warnings
exit( exitCode );