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:
Justin Berger
2017-09-18 17:28:21 -06:00
committed by Brad King
parent 46f7a6707b
commit 28d2c6ef7e
2 changed files with 18 additions and 0 deletions

View 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}")

View File

@@ -3,3 +3,4 @@ include(RunCMake)
run_cmake(ModifiedAccess)
run_cmake(NoWatcher)
run_cmake(WatchTwice)
run_cmake(ModifyWatchInCallback)