diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2002-01-19 01:32:06 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2002-01-19 01:32:06 (GMT) |
commit | c26008ccf3999156cab5a05172a04c562bed9cc8 (patch) | |
tree | ee95576b1664de2b2dbc8d97be121dc168292b9f /Tests/Complex/Executable/complex.cxx | |
parent | 2b5bb96e2367e28e980d4dcc3ddbcbebe34d08af (diff) | |
download | CMake-c26008ccf3999156cab5a05172a04c562bed9cc8.zip CMake-c26008ccf3999156cab5a05172a04c562bed9cc8.tar.gz CMake-c26008ccf3999156cab5a05172a04c562bed9cc8.tar.bz2 |
ENH: Increase test + coverage
Diffstat (limited to 'Tests/Complex/Executable/complex.cxx')
-rw-r--r-- | Tests/Complex/Executable/complex.cxx | 40 |
1 files changed, 38 insertions, 2 deletions
diff --git a/Tests/Complex/Executable/complex.cxx b/Tests/Complex/Executable/complex.cxx index b2f5162..6a55b5c 100644 --- a/Tests/Complex/Executable/complex.cxx +++ b/Tests/Complex/Executable/complex.cxx @@ -106,6 +106,42 @@ int main() Passed("SHOULD_BE_DEFINED is defined."); #endif +#ifdef SHOULD_NOT_BE_DEFINED_AND + Failed("IF or SET is broken, SHOULD_NOT_BE_DEFINED_AND is defined."); +#else + Passed("SHOULD_NOT_BE_DEFINED_AND is not defined."); +#endif + +#ifndef SHOULD_BE_DEFINED_AND + Failed("IF or SET is broken, SHOULD_BE_DEFINED_AND is not defined.\n"); +#else + Passed("SHOULD_BE_DEFINED_AND is defined."); +#endif + +#ifdef SHOULD_NOT_BE_DEFINED_OR + Failed("IF or SET is broken, SHOULD_NOT_BE_DEFINED_OR is defined."); +#else + Passed("SHOULD_NOT_BE_DEFINED_OR is not defined."); +#endif + +#ifndef SHOULD_BE_DEFINED_OR + Failed("IF or SET is broken, SHOULD_BE_DEFINED_OR is not defined.\n"); +#else + Passed("SHOULD_BE_DEFINED_OR is defined."); +#endif + +#ifdef SHOULD_NOT_BE_DEFINED_MATCHES + Failed("IF or SET is broken, SHOULD_NOT_BE_DEFINED_MATCHES is defined."); +#else + Passed("SHOULD_NOT_BE_DEFINED_MATCHES is not defined."); +#endif + +#ifndef SHOULD_BE_DEFINED_MATCHES + Failed("IF or SET is broken, SHOULD_BE_DEFINED_MATCHES is not defined.\n"); +#else + Passed("SHOULD_BE_DEFINED_MATCHES is defined."); +#endif + #ifndef ONE_VAR Failed("cmakedefine is broken, ONE_VAR is not defined."); #else @@ -188,7 +224,7 @@ int main() Failed("the FIND_FILE or GET_FILENAME_COMPONENT command is broken, " "FILENAME_VAR_NAME is not defined."); #else - if(strcmp(FILENAME_VAR_NAME, "VarTests.txt") != 0) + if(strcmp(FILENAME_VAR_NAME, "VarTests.cmake") != 0) { Failed("the FIND_FILE or GET_FILENAME_COMPONENT command is broken, " "FILENAME_VAR_NAME == ", FILENAME_VAR_NAME); @@ -203,7 +239,7 @@ int main() Failed("the FIND_FILE or GET_FILENAME_COMPONENT command is broken, " "FILENAME_VAR_EXT is not defined."); #else - if(strcmp(FILENAME_VAR_EXT, ".txt") != 0) + if(strcmp(FILENAME_VAR_EXT, ".cmake") != 0) { Failed("the FIND_FILE or GET_FILENAME_COMPONENT command is broken, " "FILENAME_VAR_EXT == ", FILENAME_VAR_EXT); |