summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLib/testRST.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-09-01 18:02:57 (GMT)
committerBrad King <brad.king@kitware.com>2016-09-03 12:04:22 (GMT)
commit3f9c4cdf89ce00ae72a1176dbf5e68b5f1f1720e (patch)
tree7c047b9b2e5c4a59ab386076b193315572abd28b /Tests/CMakeLib/testRST.cxx
parent87e76f899693fb3c29f280b417303e899c3a38dd (diff)
downloadCMake-3f9c4cdf89ce00ae72a1176dbf5e68b5f1f1720e.zip
CMake-3f9c4cdf89ce00ae72a1176dbf5e68b5f1f1720e.tar.gz
CMake-3f9c4cdf89ce00ae72a1176dbf5e68b5f1f1720e.tar.bz2
Tests/CMakeLib: use cmsys::ifstream
Diffstat (limited to 'Tests/CMakeLib/testRST.cxx')
-rw-r--r--Tests/CMakeLib/testRST.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/Tests/CMakeLib/testRST.cxx b/Tests/CMakeLib/testRST.cxx
index e5a96c2..cc92693 100644
--- a/Tests/CMakeLib/testRST.cxx
+++ b/Tests/CMakeLib/testRST.cxx
@@ -10,9 +10,12 @@
See the License for more information.
============================================================================*/
#include "cmRST.h"
-
#include "cmSystemTools.h"
+#include <cmsys/FStream.hxx>
+#include <iostream>
+#include <string>
+
void reportLine(std::ostream& os, bool ret, std::string const& line, bool eol)
{
if (ret) {
@@ -52,8 +55,8 @@ int testRST(int argc, char* argv[])
}
// Compare expected and actual outputs.
- std::ifstream e_fin(e_name.c_str());
- std::ifstream a_fin(a_name.c_str());
+ cmsys::ifstream e_fin(e_name.c_str());
+ cmsys::ifstream a_fin(a_name.c_str());
if (!e_fin) {
std::cerr << "Could not open input " << e_name << std::endl;
return 1;