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
- Commit
57df3ba9982e15e8b90a697b98a5c7b6bcf8b97e- Author
- Phil Nash ·
- Parents
e6b365dc8cdc
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 b25ed9a2..41170052 100644 --- a/include/internal/catch_test_case_registry_impl.hpp +++ b/include/internal/catch_test_case_registry_impl.hpp @@ -105,6 +105,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 }; ///////////////////////////////////////////////////////////////////////////