Tests: Add case for file(LOCK) with lower-cased path

The KWSys update in commit d28e4467 (KWSys 2016-09-14 (c4049689))
fixed this case, so add it to the test suite.

Closes: #16295
This commit is contained in:
Ruslan Baratov 2016-09-15 16:42:20 +03:00 committed by Brad King
parent 010140311a
commit a788cf3092
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-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