Commit a788cf30 authored by Ruslan Baratov's avatar Ruslan Baratov Committed by Brad King
Browse files

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
parent 01014031
Pipeline #26278 passed with stage
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-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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment