[Cmake-commits] [cmake-commits] king committed VariableWatchTest.cmake.in 1.1 1.2
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Jul 24 16:57:42 EDT 2009
Update of /cvsroot/CMake/CMake/Tests/CMakeTests
In directory public:/mounts/ram/cvs-serv3334/Tests/CMakeTests
Modified Files:
VariableWatchTest.cmake.in
Log Message:
BUG: Teach VariableWatch test to check results
Previously this test was only a smoke test for manual verification.
This teaches the test to actually check that the variable watch
succeeds.
Index: VariableWatchTest.cmake.in
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/CMakeTests/VariableWatchTest.cmake.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** VariableWatchTest.cmake.in 11 Apr 2007 19:13:05 -0000 1.1
--- VariableWatchTest.cmake.in 24 Jul 2009 20:57:38 -0000 1.2
***************
*** 7,10 ****
--- 7,11 ----
MESSAGE("There was a ${access} access done on the variable: ${var} in file ${file}")
MESSAGE("List file stack is: ${stack}")
+ set(${var}_watched 1)
endmacro(testwatch)
***************
*** 18,22 ****
--- 19,31 ----
message("Variable: ${somevar}")
+ if(NOT somevar_watched)
+ message(SEND_ERROR "'somevar' watch failed!")
+ endif()
+ set(somevar_watched)
+
set(somevar "1")
message("Variable: ${somevar}")
+ if(NOT somevar_watched)
+ message(SEND_ERROR "'somevar' watch failed!")
+ endif()
remove(somevar)
More information about the Cmake-commits
mailing list