summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLib
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-09-20 10:09:30 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2020-09-20 13:17:34 (GMT)
commit82c95083133475531d7f0e00b9e2e36bd0294739 (patch)
tree204bfeb4b8b225a7ef7aec1a0eecf24fcad70d1c /Tests/CMakeLib
parent39a5c0c82c2041a622bcdf19fa3f22abc34b9ae8 (diff)
downloadCMake-82c95083133475531d7f0e00b9e2e36bd0294739.zip
CMake-82c95083133475531d7f0e00b9e2e36bd0294739.tar.gz
CMake-82c95083133475531d7f0e00b9e2e36bd0294739.tar.bz2
cmake_path: enhancements
* Fix error on parsing "c:a" (root-name without root-directory) * Enrich documentation
Diffstat (limited to 'Tests/CMakeLib')
-rw-r--r--Tests/CMakeLib/testCMFilesystemPath.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/CMakeLib/testCMFilesystemPath.cxx b/Tests/CMakeLib/testCMFilesystemPath.cxx
index 1e84520..ee0ef0b 100644
--- a/Tests/CMakeLib/testCMFilesystemPath.cxx
+++ b/Tests/CMakeLib/testCMFilesystemPath.cxx
@@ -606,6 +606,9 @@ bool testDecomposition()
if (fs::path("c:/a/b").parent_path() != "c:/a") {
result = false;
}
+ if (fs::path("c:a").parent_path() != "c:") {
+ result = false;
+ }
if (fs::path("c:/").parent_path() != "c:/") {
result = false;
}