From a45f36cbc68ef575f5d51b76a00a54033dfb2529 Mon Sep 17 00:00:00 2001 From: "Vicente J. Botet Escriba" Date: Sun, 28 Feb 2016 19:26:38 +0100 Subject: [PATCH] Take in account possible issue while initializing cout. #12013 --- test/threads/thread/constr/FArgs_pass.cpp | 4 ++-- test/threads/thread/constr/F_pass.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/threads/thread/constr/FArgs_pass.cpp b/test/threads/thread/constr/FArgs_pass.cpp index 7b05786b..c7897589 100644 --- a/test/threads/thread/constr/FArgs_pass.cpp +++ b/test/threads/thread/constr/FArgs_pass.cpp @@ -33,7 +33,7 @@ inline void* operator new(std::size_t s) void* operator new(std::size_t s) throw (std::bad_alloc) #endif { - std::cout << __FILE__ << ":" << __LINE__ << std::endl; + //std::cout << __FILE__ << ":" << __LINE__ << std::endl; if (throw_one == 0) throw std::bad_alloc(); --throw_one; return std::malloc(s); @@ -45,7 +45,7 @@ inline void operator delete(void* p) inline void operator delete(void* p) throw () #endif { - std::cout << __FILE__ << ":" << __LINE__ << std::endl; + //std::cout << __FILE__ << ":" << __LINE__ << std::endl; std::free(p); } diff --git a/test/threads/thread/constr/F_pass.cpp b/test/threads/thread/constr/F_pass.cpp index 35dcb31a..e649f41d 100644 --- a/test/threads/thread/constr/F_pass.cpp +++ b/test/threads/thread/constr/F_pass.cpp @@ -33,7 +33,7 @@ void* operator new(std::size_t s) void* operator new(std::size_t s) throw (std::bad_alloc) #endif { - std::cout << __FILE__ << ":" << __LINE__ << std::endl; + //std::cout << __FILE__ << ":" << __LINE__ << std::endl; if (throw_one == 0) throw std::bad_alloc(); --throw_one; return std::malloc(s); @@ -45,7 +45,7 @@ void operator delete(void* p) void operator delete(void* p) throw () #endif { - std::cout << __FILE__ << ":" << __LINE__ << std::endl; + //std::cout << __FILE__ << ":" << __LINE__ << std::endl; std::free(p); }