Merge topic 'file-LOCK-lowercase-test'

a788cf30 Tests: Add case for file(LOCK) with lower-cased path
This commit is contained in:
Brad King 2016-09-16 10:20:57 -04:00 committed by CMake Topic Stage
commit 6f1b80bec0
2 changed files with 12 additions and 0 deletions

View File

@ -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)

View File

@ -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