Skip to content
Snippets Groups Projects
Commit ce55a255 authored by Matthias Männich's avatar Matthias Männich
Browse files

testSystemTools: fix some copy'n'paste issues

parent 73c491e8
No related branches found
No related tags found
No related merge requests found
...@@ -254,22 +254,22 @@ static bool CheckFileOperations() ...@@ -254,22 +254,22 @@ static bool CheckFileOperations()
} }
// should work, was created as new file before // should work, was created as new file before
if (!kwsys::SystemTools::FileExists(testNewFile)) { if (!kwsys::SystemTools::FileExists(testNewFile)) {
std::cerr << "Problem with FileExists for: " << testNewDir << std::endl; std::cerr << "Problem with FileExists for: " << testNewFile << std::endl;
res = false; res = false;
} }
if (!kwsys::SystemTools::FileExists(testNewFile.c_str())) { if (!kwsys::SystemTools::FileExists(testNewFile.c_str())) {
std::cerr << "Problem with FileExists as C string for: " << testNewDir std::cerr << "Problem with FileExists as C string for: " << testNewFile
<< std::endl; << std::endl;
res = false; res = false;
} }
if (!kwsys::SystemTools::FileExists(testNewFile, true)) { if (!kwsys::SystemTools::FileExists(testNewFile, true)) {
std::cerr << "Problem with FileExists as file for: " << testNewDir std::cerr << "Problem with FileExists as file for: " << testNewFile
<< std::endl; << std::endl;
res = false; res = false;
} }
if (!kwsys::SystemTools::FileExists(testNewFile.c_str(), true)) { if (!kwsys::SystemTools::FileExists(testNewFile.c_str(), true)) {
std::cerr << "Problem with FileExists as C string and file for: " std::cerr << "Problem with FileExists as C string and file for: "
<< testNewDir << std::endl; << testNewFile << std::endl;
res = false; res = false;
} }
...@@ -285,7 +285,7 @@ static bool CheckFileOperations() ...@@ -285,7 +285,7 @@ static bool CheckFileOperations()
} }
// should work, was created as new file before // should work, was created as new file before
if (!kwsys::SystemTools::PathExists(testNewFile)) { if (!kwsys::SystemTools::PathExists(testNewFile)) {
std::cerr << "Problem with PathExists for: " << testNewDir << std::endl; std::cerr << "Problem with PathExists for: " << testNewFile << std::endl;
res = false; res = false;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment