catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Do not open the output file twice
- Commit
45ebf17ec79f4522419fa2eba826391ae916af5e- Author
- Igor Akhmetov ·
- Committer
- Jozef Grajciar
- Parents
093b72416de3
Changes
include/internal/catch_session.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/internal/catch_session.cpp b/include/internal/catch_session.cpp index 44b45dbc..a5907e97 100644 --- a/include/internal/catch_session.cpp +++ b/include/internal/catch_session.cpp @@ -171,9 +171,9 @@ namespace Catch { return 1; auto result = m_cli.parse( clara::Args( argc, argv ) ); - config(); - getCurrentMutableContext().setConfig( m_config ); if( !result ) { + config(); + getCurrentMutableContext().setConfig(m_config); Catch::cerr() << Colour( Colour::Red ) << "\nError(s) in input:\n"