summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/testSystemTools.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-04-12 13:10:22 (GMT)
committerBrad King <brad.king@kitware.com>2017-04-12 13:10:22 (GMT)
commitada8e0cac4b50d07f4d07ecd584bf00e7afd3ac5 (patch)
treec336973c11619343de55064f40353059ad010fcf /Source/kwsys/testSystemTools.cxx
parentfddd559406558a2037733e5b760e9dd04e9edfd1 (diff)
parent85841e8bd5e678f69271272db7f838f873347812 (diff)
downloadCMake-ada8e0cac4b50d07f4d07ecd584bf00e7afd3ac5.zip
CMake-ada8e0cac4b50d07f4d07ecd584bf00e7afd3ac5.tar.gz
CMake-ada8e0cac4b50d07f4d07ecd584bf00e7afd3ac5.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys: KWSys 2017-04-12 (23a4c211)
Diffstat (limited to 'Source/kwsys/testSystemTools.cxx')
-rw-r--r--Source/kwsys/testSystemTools.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/kwsys/testSystemTools.cxx b/Source/kwsys/testSystemTools.cxx
index 8e1ea25..9b08a04 100644
--- a/Source/kwsys/testSystemTools.cxx
+++ b/Source/kwsys/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;