From 886ae02356c9bfacb340a4317b8f26ffea4db4e9 Mon Sep 17 00:00:00 2001 From: David Cole Date: Thu, 15 Oct 2009 07:38:51 -0400 Subject: [PATCH] Fix crash on Windows. Remove trailing white space from regex. These changes should correct all failures of the new FailedSubmit tests. --- Source/cmCTest.cxx | 2 +- Tests/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 8dace3313..6d21ab569 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -2369,7 +2369,7 @@ void cmCTest::EmptyCTestConfiguration() void cmCTest::SetCTestConfiguration(const char *name, const char* value) { cmCTestLog(this, HANDLER_VERBOSE_OUTPUT, "SetCTestConfiguration:" - << name << ":" << value << "\n"); + << name << ":" << (value ? value : "(null)") << "\n"); if ( !name ) { diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index c06c9948e..a3fb41ee4 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -1131,7 +1131,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=CVS -P ${CMake_SOURCE_DIR}/Utilities/Rel set(regex "(Problems when submitting via S*CP") set(regex "${regex}|Error message was: ") set(regex "${regex}(Couldn.t resolve host ") - set(regex "${regex}|couldn.t connect to host ") + set(regex "${regex}|couldn.t connect to host") set(regex "${regex}|libcurl was built with SSL disabled. https: not supported)") set(regex "${regex}|Submission method .xmlrpc. not compiled into CTest)")