summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/file/timeout-script.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/file/timeout-script.cmake')
-rw-r--r--Tests/RunCMake/file/timeout-script.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/file/timeout-script.cmake b/Tests/RunCMake/file/timeout-script.cmake
new file mode 100644
index 0000000..e07dbf0
--- /dev/null
+++ b/Tests/RunCMake/file/timeout-script.cmake
@@ -0,0 +1,5 @@
+if(NOT file_to_lock)
+ message(FATAL_ERROR "file_to_lock is empty")
+endif()
+
+file(LOCK "${file_to_lock}" TIMEOUT 1)