summaryrefslogtreecommitdiff
path: root/testSystemTools.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'testSystemTools.cxx')
-rw-r--r--testSystemTools.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/testSystemTools.cxx b/testSystemTools.cxx
index 8e1ea258a8..9b08a04a03 100644
--- a/testSystemTools.cxx
+++ b/testSystemTools.cxx
@@ -135,6 +135,19 @@ static bool CheckFileOperations()
res = false;
}
+ kwsys::SystemTools::Stat_t buf;
+ if (kwsys::SystemTools::Stat(testTxtFile.c_str(), &buf) != 0) {
+ std::cerr << "Problem with Stat - unable to stat text file: "
+ << testTxtFile << std::endl;
+ res = false;
+ }
+
+ if (kwsys::SystemTools::Stat(testBinFile, &buf) != 0) {
+ std::cerr << "Problem with Stat - unable to stat bin file: " << testBinFile
+ << std::endl;
+ res = false;
+ }
+
if (!kwsys::SystemTools::MakeDirectory(testNewDir)) {
std::cerr << "Problem with MakeDirectory for: " << testNewDir << std::endl;
res = false;