mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-20 11:35:39 +02:00
Added nothrow command line option
Causes _THROWS family of macros to no evaluate expression
This commit is contained in:
@@ -64,6 +64,7 @@ namespace Catch {
|
||||
m_prevResultCapture( &m_context.getResultCapture() )
|
||||
{
|
||||
m_context.setRunner( this );
|
||||
m_context.setConfig( &m_config );
|
||||
m_context.setResultCapture( this );
|
||||
m_reporter->StartTesting();
|
||||
}
|
||||
@@ -71,6 +72,7 @@ namespace Catch {
|
||||
~Runner() {
|
||||
m_reporter->EndTesting( m_totals );
|
||||
m_context.setRunner( m_prevRunner );
|
||||
m_context.setConfig( NULL );
|
||||
m_context.setResultCapture( m_prevResultCapture );
|
||||
}
|
||||
|
||||
@@ -139,6 +141,10 @@ namespace Catch {
|
||||
return m_totals;
|
||||
}
|
||||
|
||||
const Config& config() const {
|
||||
return m_config;
|
||||
}
|
||||
|
||||
private: // IResultCapture
|
||||
|
||||
virtual ResultAction::Value acceptResult( bool result ) {
|
||||
|
Reference in New Issue
Block a user