diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-05-23 17:23:35 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-05-23 17:23:35 (GMT) |
commit | 2d9e5edb27e840e7c5a38a98e97bdf2e507ddabb (patch) | |
tree | b440866b2f48124d946f72f465334061b9199039 /Tests/ComplexOneConfig | |
parent | 14b07c0973f367352a75550af864b56dc99c3848 (diff) | |
download | CMake-2d9e5edb27e840e7c5a38a98e97bdf2e507ddabb.zip CMake-2d9e5edb27e840e7c5a38a98e97bdf2e507ddabb.tar.gz CMake-2d9e5edb27e840e7c5a38a98e97bdf2e507ddabb.tar.bz2 |
ENH: increase coverage
Diffstat (limited to 'Tests/ComplexOneConfig')
-rw-r--r-- | Tests/ComplexOneConfig/CMakeLists.txt | 9 | ||||
-rw-r--r-- | Tests/ComplexOneConfig/Executable/complex.cxx | 14 |
2 files changed, 21 insertions, 2 deletions
diff --git a/Tests/ComplexOneConfig/CMakeLists.txt b/Tests/ComplexOneConfig/CMakeLists.txt index bbf72a0..568c8d4 100644 --- a/Tests/ComplexOneConfig/CMakeLists.txt +++ b/Tests/ComplexOneConfig/CMakeLists.txt @@ -103,7 +103,12 @@ ENDFOREACH (ext) FIND_LIBRARY(FIND_DUMMY_LIB dummylib PATHS - ${Complex_BINARY_DIR}/Library) + ${Complex_BINARY_DIR}/Library DOC "find dummy lib") + +FIND_LIBRARY(FIND_DUMMY_LIB + NAMES dummylib dummylib2 + PATHS + ${Complex_BINARY_DIR}/Library DOC "find dummy lib") # # Test SET_SOURCE_FILES_PROPERTIES @@ -135,7 +140,7 @@ IF (WIN32) EXEC_PROGRAM(${CCOMMAND_COMMAND} ARGS "write_regv \"${hkey}\" \"${dir}\"") FIND_PATH(REGISTRY_TEST_PATH ${file} - "[${hkey}]") + "[${hkey}]" DOC "Registry_Test_Path") EXEC_PROGRAM(${CCOMMAND_COMMAND} ARGS "delete_regv \"${hkey}\"") EXEC_PROGRAM(${CCOMMAND_COMMAND} ARGS "remove \"${dir}/${file}\"") ENDIF (NOT UNIX) diff --git a/Tests/ComplexOneConfig/Executable/complex.cxx b/Tests/ComplexOneConfig/Executable/complex.cxx index 0b20bfd..1dbf54f 100644 --- a/Tests/ComplexOneConfig/Executable/complex.cxx +++ b/Tests/ComplexOneConfig/Executable/complex.cxx @@ -691,6 +691,20 @@ int main() cmFailed("ESCAPE_QUOTES is not working"); } + + // ---------------------------------------------------------------------- + // Test cmSystemTools::UpperCase + std::string str = "abc"; + std::string strupper = "ABC"; + if(cmSystemTools::UpperCase(str) == strupper) + { + cmPassed("cmSystemTools::UpperCase is working"); + } + else + { + cmFailed("cmSystemTools::UpperCase is working"); + } + // ---------------------------------------------------------------------- // Summary |