diff --git a/Source/CTest/cmCTestTestCommand.cxx b/Source/CTest/cmCTestTestCommand.cxx index 40979c671..c35029c55 100644 --- a/Source/CTest/cmCTestTestCommand.cxx +++ b/Source/CTest/cmCTestTestCommand.cxx @@ -45,7 +45,7 @@ cmCTestGenericHandler* cmCTestTestCommand::InitializeHandler() } } m_CTest->SetTimeOut(timeout); - cmCTestGenericHandler* handler = m_CTest->GetInitializedHandler("test"); + cmCTestGenericHandler* handler = this->InitializeActualHandler(); if ( m_Values[ctt_START] || m_Values[ctt_END] || m_Values[ctt_STRIDE] ) { cmOStringStream testsToRunString;