mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-25 22:19:25 +00:00
Added nothrow command line option
Causes _THROWS family of macros to no evaluate expression
This commit is contained in:
parent
e20b252b5a
commit
46a3476731
9 changed files with 107 additions and 32 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue