Progmasoft Git

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

Force cout/ cerr to be initialised before errors in test registry are printed

- see #461
Commit
1dd0d4c61aa7a5e1bf72fd3c1cca8ab6d7ad5460
Author
Phil Nash ·
Parents
3b18d9e96283

Files · Download .tar.gz

Changes

 include/internal/catch_test_case_registry_impl.hpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/internal/catch_test_case_registry_impl.hpp b/include/internal/catch_test_case_registry_impl.hpp
index 21165a30..4c575b68 100644
--- a/include/internal/catch_test_case_registry_impl.hpp
+++ b/include/internal/catch_test_case_registry_impl.hpp
@@ -103,6 +103,7 @@ namespace Catch {
         std::vector<TestCase> m_functionsInOrder;
         std::vector<TestCase> m_nonHiddenFunctions;
         size_t m_unnamedCount;
+        std::ios_base::Init m_ostreamInit; // Forces cout/ cerr to be initialised
     };
 
     ///////////////////////////////////////////////////////////////////////////