diff options
author | Brad King <brad.king@kitware.com> | 2016-09-16 14:20:57 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-09-16 14:20:57 (GMT) |
commit | 6f1b80bec03fbe19e3d8f56fdee84a8ca6e4fe93 (patch) | |
tree | 22caf5167453253dcc155eb1c28cc8ca8fe358d3 | |
parent | 554655bfd91450e7e4e7feb9bd3a383d769a5528 (diff) | |
parent | a788cf309257ee0a9cd8cdd1ed5d4665d34a9580 (diff) | |
download | CMake-6f1b80bec03fbe19e3d8f56fdee84a8ca6e4fe93.zip CMake-6f1b80bec03fbe19e3d8f56fdee84a8ca6e4fe93.tar.gz CMake-6f1b80bec03fbe19e3d8f56fdee84a8ca6e4fe93.tar.bz2 |
Merge topic 'file-LOCK-lowercase-test'
a788cf30 Tests: Add case for file(LOCK) with lower-cased path
-rw-r--r-- | Tests/RunCMake/file/LOCK-lowercase.cmake | 11 | ||||
-rw-r--r-- | Tests/RunCMake/file/RunCMakeTest.cmake | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/Tests/RunCMake/file/LOCK-lowercase.cmake b/Tests/RunCMake/file/LOCK-lowercase.cmake new file mode 100644 index 0000000..373afda --- /dev/null +++ b/Tests/RunCMake/file/LOCK-lowercase.cmake @@ -0,0 +1,11 @@ +set(lock "${CMAKE_CURRENT_BINARY_DIR}/file-to-lock") + +if(WIN32) + string(TOLOWER ${lock} lock) +endif() + +file(LOCK ${lock} TIMEOUT 0) +file(LOCK ${lock} RELEASE) + +file(LOCK ${lock} TIMEOUT 0) +file(LOCK ${lock} RELEASE) diff --git a/Tests/RunCMake/file/RunCMakeTest.cmake b/Tests/RunCMake/file/RunCMakeTest.cmake index d8e9ce0..799a27c 100644 --- a/Tests/RunCMake/file/RunCMakeTest.cmake +++ b/Tests/RunCMake/file/RunCMakeTest.cmake @@ -22,6 +22,7 @@ run_cmake(LOCK-error-no-result-variable) run_cmake(LOCK-error-no-timeout) run_cmake(LOCK-error-timeout) run_cmake(LOCK-error-unknown-option) +run_cmake(LOCK-lowercase) run_cmake(GLOB) run_cmake(GLOB_RECURSE) # test is valid both for GLOB and GLOB_RECURSE |