diff options
author | KWSys Upstream <kwrobot@kitware.com> | 2016-09-14 13:38:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-09-14 13:43:31 (GMT) |
commit | d28e4467aae44db2b15a785e6f061917798cfcd4 (patch) | |
tree | 88e77f24f11299cde115b5693bb916fb60c210d2 /testSystemTools.cxx | |
parent | b80d6136321fb6c2be019dec4af4b1e486389e2c (diff) | |
download | CMake-d28e4467aae44db2b15a785e6f061917798cfcd4.zip CMake-d28e4467aae44db2b15a785e6f061917798cfcd4.tar.gz CMake-d28e4467aae44db2b15a785e6f061917798cfcd4.tar.bz2 |
KWSys 2016-09-14 (c4049689)
Code extracted from:
http://public.kitware.com/KWSys.git
at commit c4049689d1ff6e3b9f59358023aebb1a7e0fd149 (master).
Upstream Shortlog
-----------------
Brad King (2):
0504dcaf SystemTools: Fix path comparison in test case
c4049689 SystemTools: Teach GetActualCaseForPath to convert as much as possible
Diffstat (limited to 'testSystemTools.cxx')
-rw-r--r-- | testSystemTools.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testSystemTools.cxx b/testSystemTools.cxx index 9252ea6..880b46e 100644 --- a/testSystemTools.cxx +++ b/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; |