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 authored and Brad King committed 2017-09-21 11:09:24 -04:00
1 parent 46f7a6707b
commit 28d2c6ef7e
2 files changed
+18

No files matched your search

@@ -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)