forked from qt-creator/qt-creator
AutoTest: Tie framework settings explicitly to ITestFramework instance
This leaves no doubts regarding lifetime and type. Change-Id: I1fdd60427a469f32236ea0fa923ec9fa308c338e Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -87,8 +87,8 @@ QStringList GTestConfiguration::argumentsForTestRunner(QStringList *omitted) con
|
||||
arguments << "--gtest_filter=" + testSets.join(':');
|
||||
|
||||
TestFrameworkManager *manager = TestFrameworkManager::instance();
|
||||
auto gSettings = qSharedPointerCast<GTestSettings>(manager->settingsForTestFramework(id));
|
||||
if (gSettings.isNull())
|
||||
auto gSettings = dynamic_cast<GTestSettings *>(manager->settingsForTestFramework(id));
|
||||
if (!gSettings)
|
||||
return arguments;
|
||||
|
||||
if (gSettings->runDisabled)
|
||||
|
||||
Reference in New Issue
Block a user