|
@@ -380,7 +380,7 @@ public:
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
/** Add log to the output */
|
|
/** Add log to the output */
|
|
|
- void Log(LogType logType, const char* msg, bool suppress = false);
|
|
|
|
|
|
|
+ void Log(LogType logType, std::string msg, bool suppress = false);
|
|
|
|
|
|
|
|
/** Color values */
|
|
/** Color values */
|
|
|
enum class Color
|
|
enum class Color
|
|
@@ -549,12 +549,12 @@ private:
|
|
|
do { \
|
|
do { \
|
|
|
std::ostringstream cmCTestLog_msg; \
|
|
std::ostringstream cmCTestLog_msg; \
|
|
|
cmCTestLog_msg << msg; \
|
|
cmCTestLog_msg << msg; \
|
|
|
- (ctSelf)->Log(cmCTest::logType, cmCTestLog_msg.str().c_str()); \
|
|
|
|
|
|
|
+ (ctSelf)->Log(cmCTest::logType, cmCTestLog_msg.str()); \
|
|
|
} while (false)
|
|
} while (false)
|
|
|
|
|
|
|
|
#define cmCTestOptionalLog(ctSelf, logType, msg, suppress) \
|
|
#define cmCTestOptionalLog(ctSelf, logType, msg, suppress) \
|
|
|
do { \
|
|
do { \
|
|
|
std::ostringstream cmCTestLog_msg; \
|
|
std::ostringstream cmCTestLog_msg; \
|
|
|
cmCTestLog_msg << msg; \
|
|
cmCTestLog_msg << msg; \
|
|
|
- (ctSelf)->Log(cmCTest::logType, cmCTestLog_msg.str().c_str(), suppress); \
|
|
|
|
|
|
|
+ (ctSelf)->Log(cmCTest::logType, cmCTestLog_msg.str(), suppress); \
|
|
|
} while (false)
|
|
} while (false)
|