Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorPhil Nash2015-07-10 07:44:37 +0100
committerPhil Nash2015-07-10 07:44:37 +0100
commit57df3ba9982e15e8b90a697b98a5c7b6bcf8b97e (patch)
tree77b0b64cac63227c6fcbe98b2d534cddd8d6be26 /include
parente6b365dc8cdc40b9f7875450765d8aa26fa178f9 (diff)
downloadcatch3-57df3ba9982e15e8b90a697b98a5c7b6bcf8b97e.tar.gz
Force cout/ cerr to be initialised before errors in test registry are printed
- see #461
Diffstat (limited to 'include')
-rw-r--r--include/internal/catch_test_case_registry_impl.hpp1
1 files changed, 1 insertions, 0 deletions
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
};
///////////////////////////////////////////////////////////////////////////