[Cmake-commits] CMake branch, next, updated. v3.6.2-2075-g81ff6a8

Brad King brad.king at kitware.com
Thu Sep 15 11:46:52 EDT 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  81ff6a86c9eead0a376b71947f9d7323d886fc26 (commit)
       via  a788cf309257ee0a9cd8cdd1ed5d4665d34a9580 (commit)
      from  a1f57bd4f9a0dd918ca46279dfb3ea03cf0437ee (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=81ff6a86c9eead0a376b71947f9d7323d886fc26
commit 81ff6a86c9eead0a376b71947f9d7323d886fc26
Merge: a1f57bd a788cf3
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Thu Sep 15 11:46:51 2016 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Thu Sep 15 11:46:51 2016 -0400

    Merge topic 'file-LOCK-lowercase-test' into next
    
    a788cf30 Tests: Add case for file(LOCK) with lower-cased path


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a788cf309257ee0a9cd8cdd1ed5d4665d34a9580
commit a788cf309257ee0a9cd8cdd1ed5d4665d34a9580
Author:     Ruslan Baratov <ruslan_baratov at yahoo.com>
AuthorDate: Thu Sep 15 16:42:20 2016 +0300
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Thu Sep 15 11:44:28 2016 -0400

    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

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)
diff --git a/Tests/RunCMake/file/RunCMakeTest.cmake b/Tests/RunCMake/file/RunCMakeTest.cmake
index d8e9ce0..799a27c 100644
--- a/Tests/RunCMake/file/RunCMakeTest.cmake
+++ b/Tests/RunCMake/file/RunCMakeTest.cmake
@@ -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

-----------------------------------------------------------------------

Summary of changes:
 Tests/RunCMake/file/LOCK-lowercase.cmake |   11 +++++++++++
 Tests/RunCMake/file/RunCMakeTest.cmake   |    1 +
 2 files changed, 12 insertions(+)
 create mode 100644 Tests/RunCMake/file/LOCK-lowercase.cmake


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list