summaryrefslogtreecommitdiffstats
path: root/Tests/ComplexOneConfig/Executable/complex.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-06-30 17:39:38 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-06-30 17:39:38 (GMT)
commitba3b7c1588abf9009895e47a93a0614bec484315 (patch)
treeb15e17d83a19b6752ba34a18fd4a3e8e08ee8de0 /Tests/ComplexOneConfig/Executable/complex.cxx
parent8ea0a1a2373f76cb78a0890932f115aad0fb8df5 (diff)
downloadCMake-ba3b7c1588abf9009895e47a93a0614bec484315.zip
CMake-ba3b7c1588abf9009895e47a93a0614bec484315.tar.gz
CMake-ba3b7c1588abf9009895e47a93a0614bec484315.tar.bz2
ENH: added testing of the WHILE command
Diffstat (limited to 'Tests/ComplexOneConfig/Executable/complex.cxx')
-rw-r--r--Tests/ComplexOneConfig/Executable/complex.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/ComplexOneConfig/Executable/complex.cxx b/Tests/ComplexOneConfig/Executable/complex.cxx
index 6c62da3..85fe299 100644
--- a/Tests/ComplexOneConfig/Executable/complex.cxx
+++ b/Tests/ComplexOneConfig/Executable/complex.cxx
@@ -657,6 +657,18 @@ int main()
#endif
// ----------------------------------------------------------------------
+ // Test WHILE
+
+ if(WHILE_VALUE != 1000)
+ {
+ cmFailed("WHILE command is not working");
+ }
+ else
+ {
+ cmPassed("WHILE command is working");
+ }
+
+ // ----------------------------------------------------------------------
// Test FIND_FILE, FIND_PATH and various GET_FILENAME_COMPONENT combinations
#ifndef FILENAME_VAR_PATH_NAME