summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/testDirectory.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/kwsys/testDirectory.cxx')
-rw-r--r--Source/kwsys/testDirectory.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/testDirectory.cxx b/Source/kwsys/testDirectory.cxx
index 06a22dc..a847462 100644
--- a/Source/kwsys/testDirectory.cxx
+++ b/Source/kwsys/testDirectory.cxx
@@ -122,7 +122,7 @@ int _copyDirectoryTest()
}
const Status copysuccess = SystemTools::CopyADirectory(source, destination);
const bool destinationexists = SystemTools::PathExists(destination);
- if (copysuccess) {
+ if (copysuccess.IsSuccess()) {
std::cerr << "CopyADirectory should have returned false" << std::endl;
SystemTools::RemoveADirectory(destination);
return 3;