mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 00:11:07 -06:00
test: Added additional unit test to variable_watch
This tests adding a variable_watch inside the callback to an existing callback
This commit is contained in:
17
Tests/RunCMake/variable_watch/ModifyWatchInCallback.cmake
Normal file
17
Tests/RunCMake/variable_watch/ModifyWatchInCallback.cmake
Normal file
@@ -0,0 +1,17 @@
|
||||
function (watch2)
|
||||
|
||||
endfunction ()
|
||||
|
||||
function (watch1)
|
||||
variable_watch(watched watch2)
|
||||
variable_watch(watched watch2)
|
||||
variable_watch(watched watch2)
|
||||
variable_watch(watched watch2)
|
||||
variable_watch(watched watch2)
|
||||
variable_watch(watched watch2)
|
||||
endfunction ()
|
||||
|
||||
variable_watch(watched watch1)
|
||||
variable_watch(watched watch2)
|
||||
|
||||
set(access "${watched}")
|
||||
@@ -3,3 +3,4 @@ include(RunCMake)
|
||||
run_cmake(ModifiedAccess)
|
||||
run_cmake(NoWatcher)
|
||||
run_cmake(WatchTwice)
|
||||
run_cmake(ModifyWatchInCallback)
|
||||
|
||||
Reference in New Issue
Block a user