changeset 3471:1fdbe5885783

fix unit tests: removed \r from the expected string since we removed it when generating the log line
author Alain Mazy <alain@mazy.be>
date Thu, 11 Jul 2019 13:29:50 +0200
parents 9aaf40d504a2
children 50fe8c0ff9e5 37e908965e5a
files UnitTestsSources/LoggingTests.cpp
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/UnitTestsSources/LoggingTests.cpp	Thu Jul 11 11:49:15 2019 +0200
+++ b/UnitTestsSources/LoggingTests.cpp	Thu Jul 11 13:29:50 2019 +0200
@@ -61,18 +61,14 @@
 /**
 Extracts the log line payload
 
-"E0423 16:55:43.001194 LoggingTests.cpp:102] Foo bar?\r\n"
+"E0423 16:55:43.001194 LoggingTests.cpp:102] Foo bar?\n"
 -->
 "Foo bar"
 
 If the log line cannot be matched, the function returns false.
 */
 
-#ifdef WIN32
-# define EOLSTRING "\r\n"
-#else 
-# define EOLSTRING "\n"
-#endif
+#define EOLSTRING "\n"
 
 static bool GetLogLinePayload(std::string& payload,
   const std::string& logLine)