diff options
author | Brad King <brad.king@kitware.com> | 2013-06-05 13:39:48 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-06-05 13:39:48 (GMT) |
commit | c02f01b0397dc39346d1d07dd03c4515590482b3 (patch) | |
tree | 9fd75f547a6487541c67d884001bae8bd696cf2c /Tests | |
parent | 31a02203977fdbb518bf796ceb1f9170046456dd (diff) | |
parent | d26800bc40a103d90366da176ad68ed92f21daab (diff) | |
download | CMake-c02f01b0397dc39346d1d07dd03c4515590482b3.zip CMake-c02f01b0397dc39346d1d07dd03c4515590482b3.tar.gz CMake-c02f01b0397dc39346d1d07dd03c4515590482b3.tar.bz2 |
Merge topic 'fix-path-root-dot-dot'
d26800b get_filename_component: Test ABSOLUTE of .. after root component
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/get_filename_component/KnownComponents.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/get_filename_component/KnownComponents.cmake b/Tests/RunCMake/get_filename_component/KnownComponents.cmake index a4ef8ff..9d7cf90 100644 --- a/Tests/RunCMake/get_filename_component/KnownComponents.cmake +++ b/Tests/RunCMake/get_filename_component/KnownComponents.cmake @@ -24,6 +24,11 @@ check("DIRECTORY in windows root" "${test_winroot}" "c:/") get_filename_component(test_absolute "/path/to/a/../filename.ext.in" ABSOLUTE) check("ABSOLUTE" "${test_absolute}" "/path/to/filename.ext.in") +get_filename_component(test_absolute "/../path/to/filename.ext.in" ABSOLUTE) +check("ABSOLUTE .. in root" "${test_absolute}" "/path/to/filename.ext.in") +get_filename_component(test_absolute "c:/../path/to/filename.ext.in" ABSOLUTE) +check("ABSOLUTE .. in windows root" "${test_absolute}" "c:/path/to/filename.ext.in") + get_filename_component(test_cache "/path/to/filename.ext.in" DIRECTORY CACHE) check("CACHE 1" "${test_cache}" "/path/to") get_filename_component(test_cache "/path/to/other/filename.ext.in" DIRECTORY CACHE) |