summaryrefslogtreecommitdiffstats
path: root/Modules/CTest.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/CTest.cmake')
-rw-r--r--Modules/CTest.cmake11
1 files changed, 6 insertions, 5 deletions
diff --git a/Modules/CTest.cmake b/Modules/CTest.cmake
index 40ae7fd..44e8c67 100644
--- a/Modules/CTest.cmake
+++ b/Modules/CTest.cmake
@@ -122,15 +122,16 @@ IF(BUILD_TESTING)
ENDIF(NOT __CTEST_UPDATE_TYPE_COMPLAINED)
ENDIF(NOT UPDATE_TYPE)
- IF(UPDATE_TYPE MATCHES "[Cc][Vv][Ss]")
+ STRING(TOLOWER "${UPDATE_TYPE}" _update_type)
+ IF("${_update_type}" STREQUAL "cvs")
SET(UPDATE_COMMAND "${CVSCOMMAND}")
SET(UPDATE_OPTIONS "${CVS_UPDATE_OPTIONS}")
- ELSE(UPDATE_TYPE MATCHES "[Cc][Vv][Ss]")
- IF(UPDATE_TYPE MATCHES "[Ss][Vv][Nn]")
+ ELSE("${_update_type}" STREQUAL "cvs")
+ IF("${_update_type}" STREQUAL "svn")
SET(UPDATE_COMMAND "${SVNCOMMAND}")
SET(UPDATE_OPTIONS "${SVN_UPDATE_OPTIONS}")
- ENDIF(UPDATE_TYPE MATCHES "[Ss][Vv][Nn]")
- ENDIF(UPDATE_TYPE MATCHES "[Cc][Vv][Ss]")
+ ENDIF("${_update_type}" STREQUAL "svn")
+ ENDIF("${_update_type}" STREQUAL "cvs")
SET(DART_TESTING_TIMEOUT 1500 CACHE STRING
"Maximum time allowed before CTest will kill the test.")