From 57df3ba9982e15e8b90a697b98a5c7b6bcf8b97e Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Fri, 10 Jul 2015 07:44:37 +0100 Subject: [PATCH] Force cout/ cerr to be initialised before errors in test registry are printed - see #461 --- 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 m_functionsInOrder; std::vector m_nonHiddenFunctions; size_t m_unnamedCount; + std::ios_base::Init m_ostreamInit; // Forces cout/ cerr to be initialised }; ///////////////////////////////////////////////////////////////////////////