summaryrefslogtreecommitdiffstats
path: root/Tests/Complex/Executable/complex.cxx
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2002-04-01 19:58:21 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2002-04-01 19:58:21 (GMT)
commit81ebecaea17cc18dfdda4fc3051eba08f6f076a0 (patch)
treef3a71ac1a115fb7fd4b079586b028ae6d5c7a5f7 /Tests/Complex/Executable/complex.cxx
parent2b4e802a947ad5fd86b1ed296ea2f31714270dfa (diff)
downloadCMake-81ebecaea17cc18dfdda4fc3051eba08f6f076a0.zip
CMake-81ebecaea17cc18dfdda4fc3051eba08f6f076a0.tar.gz
CMake-81ebecaea17cc18dfdda4fc3051eba08f6f076a0.tar.bz2
ENH: add test for registry-related functions (win32)
Diffstat (limited to 'Tests/Complex/Executable/complex.cxx')
-rw-r--r--Tests/Complex/Executable/complex.cxx20
1 files changed, 19 insertions, 1 deletions
diff --git a/Tests/Complex/Executable/complex.cxx b/Tests/Complex/Executable/complex.cxx
index 8459571..61ffd8f 100644
--- a/Tests/Complex/Executable/complex.cxx
+++ b/Tests/Complex/Executable/complex.cxx
@@ -37,7 +37,7 @@ void ForceStringUse()
void cmFailed(const char* Message, const char* m2= "")
{
- std::cerr << "FAILED: " << Message << m2 << "\n";
+ std::cout << "FAILED: " << Message << m2 << "\n";
cm_failed++;
}
@@ -613,6 +613,24 @@ int main()
#endif
// ----------------------------------------------------------------------
+ // Test registry (win32)
+#if defined(_WIN32) && !defined(__CYGWIN__)
+#ifndef REGISTRY_TEST_PATH
+ cmFailed("the CONFIGURE_FILE command is broken, REGISTRY_TEST_PATH is not defined.");
+#else
+ if(strcmp(REGISTRY_TEST_PATH, BINARY_DIR "/registry_dir") != 0)
+ {
+ cmFailed("the 'read registry value' function or CONFIGURE_FILE command is broken. REGISTRY_TEST_PATH == ",
+ REGISTRY_TEST_PATH);
+ }
+ else
+ {
+ cmPassed("REGISTRY_TEST_PATH == ", REGISTRY_TEST_PATH);
+ }
+#endif
+#endif // defined(_WIN32) && !defined(__CYGWIN__)
+
+ // ----------------------------------------------------------------------
// Summary
std::cout << "Passed: " << cm_passed << "\n";