summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-09-01 18:04:35 (GMT)
committerBrad King <brad.king@kitware.com>2016-09-03 12:04:22 (GMT)
commit54140848181e15acfda9c385e6cdc5c8b4f2a1d6 (patch)
tree5db096d010f1991ec74e2302c042152dc5ab2262 /Tests
parent3f9c4cdf89ce00ae72a1176dbf5e68b5f1f1720e (diff)
downloadCMake-54140848181e15acfda9c385e6cdc5c8b4f2a1d6.zip
CMake-54140848181e15acfda9c385e6cdc5c8b4f2a1d6.tar.gz
CMake-54140848181e15acfda9c385e6cdc5c8b4f2a1d6.tar.bz2
Tests/CMakeLib: include what you use
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeLib/testGeneratedFileStream.cxx3
-rw-r--r--Tests/CMakeLib/testUTF8.cxx2
-rw-r--r--Tests/CMakeLib/testXMLSafe.cxx6
3 files changed, 7 insertions, 4 deletions
diff --git a/Tests/CMakeLib/testGeneratedFileStream.cxx b/Tests/CMakeLib/testGeneratedFileStream.cxx
index e5a2f4d..a31cc42 100644
--- a/Tests/CMakeLib/testGeneratedFileStream.cxx
+++ b/Tests/CMakeLib/testGeneratedFileStream.cxx
@@ -12,6 +12,9 @@
#include "cmGeneratedFileStream.h"
#include "cmSystemTools.h"
+#include <iostream>
+#include <string>
+
#define cmFailed(m1, m2) \
std::cout << "FAILED: " << m1 << m2 << "\n"; \
failed = 1
diff --git a/Tests/CMakeLib/testUTF8.cxx b/Tests/CMakeLib/testUTF8.cxx
index 019a2dd..c99a925 100644
--- a/Tests/CMakeLib/testUTF8.cxx
+++ b/Tests/CMakeLib/testUTF8.cxx
@@ -10,9 +10,7 @@
See the License for more information.
============================================================================*/
#include <cm_utf8.h>
-
#include <stdio.h>
-#include <string.h>
typedef char test_utf8_char[5];
diff --git a/Tests/CMakeLib/testXMLSafe.cxx b/Tests/CMakeLib/testXMLSafe.cxx
index 4970ccc..356880c 100644
--- a/Tests/CMakeLib/testXMLSafe.cxx
+++ b/Tests/CMakeLib/testXMLSafe.cxx
@@ -9,9 +9,11 @@
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License for more information.
============================================================================*/
-#include <cmXMLSafe.h>
+#include "cmXMLSafe.h"
-#include "cmStandardIncludes.h"
+#include <sstream>
+#include <stdio.h>
+#include <string>
struct test_pair
{