summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/file/LOCK-lowercase.cmake
diff options
context:
space:
mode:
authorRuslan Baratov <ruslan_baratov@yahoo.com>2016-09-15 13:42:20 (GMT)
committerBrad King <brad.king@kitware.com>2016-09-15 15:44:28 (GMT)
commita788cf309257ee0a9cd8cdd1ed5d4665d34a9580 (patch)
tree4d01769d6b9ef7a9ded325ff76721959f858063f /Tests/RunCMake/file/LOCK-lowercase.cmake
parent010140311a0aa9336b7e2a2d22c177d445ee1c32 (diff)
downloadCMake-a788cf309257ee0a9cd8cdd1ed5d4665d34a9580.zip
CMake-a788cf309257ee0a9cd8cdd1ed5d4665d34a9580.tar.gz
CMake-a788cf309257ee0a9cd8cdd1ed5d4665d34a9580.tar.bz2
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
Diffstat (limited to 'Tests/RunCMake/file/LOCK-lowercase.cmake')
-rw-r--r--Tests/RunCMake/file/LOCK-lowercase.cmake11
1 files changed, 11 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)