summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLib
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-09-06 12:50:55 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-09-06 12:50:55 (GMT)
commit19255a3516e230da77b18c051d89012bcabcd254 (patch)
tree45f7f57f5b84a5664a08d198b924b8ed2cb32707 /Tests/CMakeLib
parenteb226b366f40da2d284bb60d57c2d8bcb85de607 (diff)
parent1a9de8035c35cdb3e0501ce2cf2f816e4220bea0 (diff)
downloadCMake-19255a3516e230da77b18c051d89012bcabcd254.zip
CMake-19255a3516e230da77b18c051d89012bcabcd254.tar.gz
CMake-19255a3516e230da77b18c051d89012bcabcd254.tar.bz2
Merge topic 'macro-parenthesis'
1a9de803 surround macro arguments with parentheses
Diffstat (limited to 'Tests/CMakeLib')
-rw-r--r--Tests/CMakeLib/testGeneratedFileStream.cxx2
-rw-r--r--Tests/CMakeLib/testSystemTools.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/Tests/CMakeLib/testGeneratedFileStream.cxx b/Tests/CMakeLib/testGeneratedFileStream.cxx
index a31cc42..b419b9e 100644
--- a/Tests/CMakeLib/testGeneratedFileStream.cxx
+++ b/Tests/CMakeLib/testGeneratedFileStream.cxx
@@ -16,7 +16,7 @@
#include <string>
#define cmFailed(m1, m2) \
- std::cout << "FAILED: " << m1 << m2 << "\n"; \
+ std::cout << "FAILED: " << (m1) << (m2) << "\n"; \
failed = 1
int testGeneratedFileStream(int /*unused*/, char* /*unused*/ [])
diff --git a/Tests/CMakeLib/testSystemTools.cxx b/Tests/CMakeLib/testSystemTools.cxx
index 8e8d4c4..e834b93 100644
--- a/Tests/CMakeLib/testSystemTools.cxx
+++ b/Tests/CMakeLib/testSystemTools.cxx
@@ -14,9 +14,9 @@
#include <iostream>
#include <string>
-#define cmPassed(m) std::cout << "Passed: " << m << "\n"
+#define cmPassed(m) std::cout << "Passed: " << (m) << "\n"
#define cmFailed(m) \
- std::cout << "FAILED: " << m << "\n"; \
+ std::cout << "FAILED: " << (m) << "\n"; \
failed = 1
int testSystemTools(int /*unused*/, char* /*unused*/ [])