Merge topic 'file-LOCK-lowercase-test'
a788cf30
Tests: Add case for file(LOCK) with lower-cased path
This commit is contained in:
commit
6f1b80bec0
|
@ -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)
|
|
@ -22,6 +22,7 @@ run_cmake(LOCK-error-no-result-variable)
|
||||||
run_cmake(LOCK-error-no-timeout)
|
run_cmake(LOCK-error-no-timeout)
|
||||||
run_cmake(LOCK-error-timeout)
|
run_cmake(LOCK-error-timeout)
|
||||||
run_cmake(LOCK-error-unknown-option)
|
run_cmake(LOCK-error-unknown-option)
|
||||||
|
run_cmake(LOCK-lowercase)
|
||||||
run_cmake(GLOB)
|
run_cmake(GLOB)
|
||||||
run_cmake(GLOB_RECURSE)
|
run_cmake(GLOB_RECURSE)
|
||||||
# test is valid both for GLOB and GLOB_RECURSE
|
# test is valid both for GLOB and GLOB_RECURSE
|
||||||
|
|
Loading…
Reference in New Issue