summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/testDirectory.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-04-14 16:13:59 (GMT)
committerBrad King <brad.king@kitware.com>2021-04-14 16:13:59 (GMT)
commiteef585efaa49d546a9af2939a147c971c76de03e (patch)
tree35125ce532848216258f06ff643b1cde6090c3b2 /Source/kwsys/testDirectory.cxx
parentff9e922902834a68d7872fa2d7476f28c865decd (diff)
parenta790167101290eaf77d7a3ef8fd807160af1b9a9 (diff)
downloadCMake-eef585efaa49d546a9af2939a147c971c76de03e.zip
CMake-eef585efaa49d546a9af2939a147c971c76de03e.tar.gz
CMake-eef585efaa49d546a9af2939a147c971c76de03e.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream * upstream-KWSys: KWSys 2021-04-14 (7ab1c601)
Diffstat (limited to 'Source/kwsys/testDirectory.cxx')
-rw-r--r--Source/kwsys/testDirectory.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/kwsys/testDirectory.cxx b/Source/kwsys/testDirectory.cxx
index eb3ca32..06a22dc 100644
--- a/Source/kwsys/testDirectory.cxx
+++ b/Source/kwsys/testDirectory.cxx
@@ -88,7 +88,7 @@ int _nonExistentDirectoryTest()
errorMessage = "foo";
// Increment res failure if directory lists
- res += testdir.Load(testdirpath, &errorMessage);
+ res += testdir.Load(testdirpath, &errorMessage) ? 1 : 0;
#if !defined(_WIN32) || defined(__CYGWIN__)
// Increment res failure if errorMessage is unmodified
res += (errorMessage == "foo");
@@ -120,7 +120,7 @@ int _copyDirectoryTest()
std::cerr << destination << " shouldn't exist before test" << std::endl;
return 2;
}
- const bool copysuccess = SystemTools::CopyADirectory(source, destination);
+ const Status copysuccess = SystemTools::CopyADirectory(source, destination);
const bool destinationexists = SystemTools::PathExists(destination);
if (copysuccess) {
std::cerr << "CopyADirectory should have returned false" << std::endl;