cmCTest: don't redefine cout and cerr

The definitions have been introduced to ensure that cout and cerr are
not used in certain files.  However, this limitation does not apply to
all source files that require cmCTest.h to be included.  Furthermore,
the definitions cause side effects depending on the include order.  In
total, the definitions do more harm than good.  Remove them.
This commit is contained in:
Daniel Pfeifer 2016-09-01 20:19:50 +02:00 committed by Brad King
parent 3838a0d5fb
commit bd3d0eafbb

View File

@ -45,16 +45,6 @@ class cmXMLWriter;
cmCTestLog_msg.str().c_str(), suppress); \
} while (0)
#ifdef cerr
#undef cerr
#endif
#define cerr no_cerr_use_cmCTestLog
#ifdef cout
#undef cout
#endif
#define cout no_cout_use_cmCTestLog
/** \class cmCTest
* \brief Represents a ctest invocation.
*