mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05: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:
@@ -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