diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2014-10-04 20:19:13 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2014-10-04 20:20:04 (GMT) |
commit | 42e39bb37d874e2bd71f982c213a5f1de5a7bf3d (patch) | |
tree | 0c8efb111426c7da7f51ddec3a3b04c291bf6700 /Source/CTest/cmCTestBatchTestHandler.cxx | |
parent | c5fdca7c17ea9afe8b88ea50f178ae6dff233de8 (diff) | |
download | CMake-42e39bb37d874e2bd71f982c213a5f1de5a7bf3d.zip CMake-42e39bb37d874e2bd71f982c213a5f1de5a7bf3d.tar.gz CMake-42e39bb37d874e2bd71f982c213a5f1de5a7bf3d.tar.bz2 |
Fix a few more places to use cmsys::[io]fstream instead of std::fstream.
Diffstat (limited to 'Source/CTest/cmCTestBatchTestHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestBatchTestHandler.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/CTest/cmCTestBatchTestHandler.cxx b/Source/CTest/cmCTestBatchTestHandler.cxx index 934481b..7f966aa 100644 --- a/Source/CTest/cmCTestBatchTestHandler.cxx +++ b/Source/CTest/cmCTestBatchTestHandler.cxx @@ -33,8 +33,8 @@ void cmCTestBatchTestHandler::WriteBatchScript() { this->Script = this->CTest->GetBinaryDir() + "/Testing/CTestBatch.txt"; - std::fstream fout; - fout.open(this->Script.c_str(), std::ios::out); + cmsys::ofstream fout; + fout.open(this->Script.c_str()); fout << "#!/bin/sh\n"; for(TestMap::iterator i = this->Tests.begin(); i != this->Tests.end(); ++i) @@ -48,7 +48,7 @@ void cmCTestBatchTestHandler::WriteBatchScript() } //--------------------------------------------------------- -void cmCTestBatchTestHandler::WriteSrunArgs(int test, std::fstream& fout) +void cmCTestBatchTestHandler::WriteSrunArgs(int test, cmsys::ofstream& fout) { cmCTestTestHandler::cmCTestTestProperties* properties = this->Properties[test]; @@ -79,7 +79,7 @@ void cmCTestBatchTestHandler::WriteSrunArgs(int test, std::fstream& fout) } //--------------------------------------------------------- -void cmCTestBatchTestHandler::WriteTestCommand(int test, std::fstream& fout) +void cmCTestBatchTestHandler::WriteTestCommand(int test, cmsys::ofstream& fout) { std::vector<std::string> args = this->Properties[test]->Args; std::vector<std::string> processArgs; |