diff options
author | Brad King <brad.king@kitware.com> | 2017-04-12 13:10:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-04-12 13:10:22 (GMT) |
commit | ada8e0cac4b50d07f4d07ecd584bf00e7afd3ac5 (patch) | |
tree | c336973c11619343de55064f40353059ad010fcf /Source/kwsys/testSystemTools.cxx | |
parent | fddd559406558a2037733e5b760e9dd04e9edfd1 (diff) | |
parent | 85841e8bd5e678f69271272db7f838f873347812 (diff) | |
download | CMake-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.cxx | 13 |
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; |