From 5325be37b6ffd57ce3ce3aeca64b759ce032cc82 Mon Sep 17 00:00:00 2001 From: Sebastien Barre Date: Mon, 21 Jan 2002 10:22:51 -0500 Subject: Comment test OUTPUT_REQUIRED --- Tests/Complex/Executable/complex.cxx | 26 ++++++++++++++++++++++- Tests/ComplexOneConfig/Executable/complex.cxx | 26 ++++++++++++++++++++++- Tests/ComplexRelativePaths/Executable/complex.cxx | 26 ++++++++++++++++++++++- 3 files changed, 75 insertions(+), 3 deletions(-) diff --git a/Tests/Complex/Executable/complex.cxx b/Tests/Complex/Executable/complex.cxx index 8707937..a5bba20 100644 --- a/Tests/Complex/Executable/complex.cxx +++ b/Tests/Complex/Executable/complex.cxx @@ -277,6 +277,30 @@ int main() cmPassed("SHOULD_BE_DEFINED_COMMAND2 is defined."); #endif +#ifdef SHOULD_NOT_BE_DEFINED_EXISTS + cmFailed("IF or SET is broken, SHOULD_NOT_BE_DEFINED_EXISTS is defined."); +#else + cmPassed("SHOULD_NOT_BE_DEFINED_EXISTS is not defined."); +#endif + +#ifndef SHOULD_BE_DEFINED_EXISTS + cmFailed("IF or SET is broken, SHOULD_BE_DEFINED_EXISTS is not defined.\n"); +#else + cmPassed("SHOULD_BE_DEFINED_EXISTS is defined."); +#endif + +#ifdef SHOULD_NOT_BE_DEFINED_EXISTS2 + cmFailed("IF or SET is broken, SHOULD_NOT_BE_DEFINED_EXISTS2 is defined."); +#else + cmPassed("SHOULD_NOT_BE_DEFINED_EXISTS2 is not defined."); +#endif + +#ifndef SHOULD_BE_DEFINED_EXISTS2 + cmFailed("IF or SET is broken, SHOULD_BE_DEFINED_EXISTS2 is not defined.\n"); +#else + cmPassed("SHOULD_BE_DEFINED_EXISTS2 is defined."); +#endif + // ---------------------------------------------------------------------- // Test FOREACH @@ -480,7 +504,7 @@ int main() // The files required by 'complex' have been output to a file. // The contents of this file is not tested (absolute paths). - TestAndRemoveFile(BINARY_DIR "/Executable/complex-required.txt"); + // TestAndRemoveFile(BINARY_DIR "/Executable/complex-required.txt"); // ---------------------------------------------------------------------- // Summary diff --git a/Tests/ComplexOneConfig/Executable/complex.cxx b/Tests/ComplexOneConfig/Executable/complex.cxx index 8707937..a5bba20 100644 --- a/Tests/ComplexOneConfig/Executable/complex.cxx +++ b/Tests/ComplexOneConfig/Executable/complex.cxx @@ -277,6 +277,30 @@ int main() cmPassed("SHOULD_BE_DEFINED_COMMAND2 is defined."); #endif +#ifdef SHOULD_NOT_BE_DEFINED_EXISTS + cmFailed("IF or SET is broken, SHOULD_NOT_BE_DEFINED_EXISTS is defined."); +#else + cmPassed("SHOULD_NOT_BE_DEFINED_EXISTS is not defined."); +#endif + +#ifndef SHOULD_BE_DEFINED_EXISTS + cmFailed("IF or SET is broken, SHOULD_BE_DEFINED_EXISTS is not defined.\n"); +#else + cmPassed("SHOULD_BE_DEFINED_EXISTS is defined."); +#endif + +#ifdef SHOULD_NOT_BE_DEFINED_EXISTS2 + cmFailed("IF or SET is broken, SHOULD_NOT_BE_DEFINED_EXISTS2 is defined."); +#else + cmPassed("SHOULD_NOT_BE_DEFINED_EXISTS2 is not defined."); +#endif + +#ifndef SHOULD_BE_DEFINED_EXISTS2 + cmFailed("IF or SET is broken, SHOULD_BE_DEFINED_EXISTS2 is not defined.\n"); +#else + cmPassed("SHOULD_BE_DEFINED_EXISTS2 is defined."); +#endif + // ---------------------------------------------------------------------- // Test FOREACH @@ -480,7 +504,7 @@ int main() // The files required by 'complex' have been output to a file. // The contents of this file is not tested (absolute paths). - TestAndRemoveFile(BINARY_DIR "/Executable/complex-required.txt"); + // TestAndRemoveFile(BINARY_DIR "/Executable/complex-required.txt"); // ---------------------------------------------------------------------- // Summary diff --git a/Tests/ComplexRelativePaths/Executable/complex.cxx b/Tests/ComplexRelativePaths/Executable/complex.cxx index 8707937..a5bba20 100644 --- a/Tests/ComplexRelativePaths/Executable/complex.cxx +++ b/Tests/ComplexRelativePaths/Executable/complex.cxx @@ -277,6 +277,30 @@ int main() cmPassed("SHOULD_BE_DEFINED_COMMAND2 is defined."); #endif +#ifdef SHOULD_NOT_BE_DEFINED_EXISTS + cmFailed("IF or SET is broken, SHOULD_NOT_BE_DEFINED_EXISTS is defined."); +#else + cmPassed("SHOULD_NOT_BE_DEFINED_EXISTS is not defined."); +#endif + +#ifndef SHOULD_BE_DEFINED_EXISTS + cmFailed("IF or SET is broken, SHOULD_BE_DEFINED_EXISTS is not defined.\n"); +#else + cmPassed("SHOULD_BE_DEFINED_EXISTS is defined."); +#endif + +#ifdef SHOULD_NOT_BE_DEFINED_EXISTS2 + cmFailed("IF or SET is broken, SHOULD_NOT_BE_DEFINED_EXISTS2 is defined."); +#else + cmPassed("SHOULD_NOT_BE_DEFINED_EXISTS2 is not defined."); +#endif + +#ifndef SHOULD_BE_DEFINED_EXISTS2 + cmFailed("IF or SET is broken, SHOULD_BE_DEFINED_EXISTS2 is not defined.\n"); +#else + cmPassed("SHOULD_BE_DEFINED_EXISTS2 is defined."); +#endif + // ---------------------------------------------------------------------- // Test FOREACH @@ -480,7 +504,7 @@ int main() // The files required by 'complex' have been output to a file. // The contents of this file is not tested (absolute paths). - TestAndRemoveFile(BINARY_DIR "/Executable/complex-required.txt"); + // TestAndRemoveFile(BINARY_DIR "/Executable/complex-required.txt"); // ---------------------------------------------------------------------- // Summary -- cgit v0.12