summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/testSystemTools.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-09-14 13:43:32 (GMT)
committerBrad King <brad.king@kitware.com>2016-09-14 13:49:37 (GMT)
commit04d94fbe92535f57177777bc8715fb41a2d7dcc0 (patch)
treecf9b5a593c7689d2b9d63c389ccdb4a63aa3ee53 /Source/kwsys/testSystemTools.cxx
parente4fc770fa39f8433147cae4849923286e5b3511a (diff)
parentd28e4467aae44db2b15a785e6f061917798cfcd4 (diff)
downloadCMake-04d94fbe92535f57177777bc8715fb41a2d7dcc0.zip
CMake-04d94fbe92535f57177777bc8715fb41a2d7dcc0.tar.gz
CMake-04d94fbe92535f57177777bc8715fb41a2d7dcc0.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys: KWSys 2016-09-14 (c4049689) Issue: #16295
Diffstat (limited to 'Source/kwsys/testSystemTools.cxx')
-rw-r--r--Source/kwsys/testSystemTools.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/kwsys/testSystemTools.cxx b/Source/kwsys/testSystemTools.cxx
index 9252ea6..880b46e 100644
--- a/Source/kwsys/testSystemTools.cxx
+++ b/Source/kwsys/testSystemTools.cxx
@@ -940,7 +940,7 @@ static bool CheckRelativePath(
const std::string& expected)
{
std::string result = kwsys::SystemTools::RelativePath(local, remote);
- if(expected != result)
+ if (!kwsys::SystemTools::ComparePath(expected, result))
{
std::cerr << "RelativePath(" << local << ", " << remote
<< ") yielded " << result << " instead of " << expected << std::endl;
@@ -965,7 +965,7 @@ static bool CheckCollapsePath(
const std::string& expected)
{
std::string result = kwsys::SystemTools::CollapseFullPath(path);
- if(expected != result)
+ if (!kwsys::SystemTools::ComparePath(expected, result))
{
std::cerr << "CollapseFullPath(" << path
<< ") yielded " << result << " instead of " << expected << std::endl;