Qt4RunConfiguration: Do not mark unit tests as terminal apps

QT += testlib automatically adds CONFIG+=console, which we use to
decide whether the app should be run with a terminal. Typically though
those apps do not need a terminal since they are just unit tests without
any need for input.

Task-number: QTCREATORBUG-9475
Change-Id: I98667cb17a6696a4a4ffd195280e816d84d33581
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Daniel Teske
2013-06-11 17:42:19 +02:00
parent bc29c67183
commit e181ae009b

View File

@@ -654,6 +654,7 @@ ProjectExplorer::RunConfiguration *Qt4RunConfigurationFactory::doCreate(ProjectE
if (node->path() != rc->proFilePath())
continue;
rc->setRunMode(node->variableValue(ConfigVar).contains(QLatin1String("console"))
&& !node->variableValue(QtVar).contains(QLatin1String("testlib"))
? ProjectExplorer::LocalApplicationRunConfiguration::Console
: ProjectExplorer::LocalApplicationRunConfiguration::Gui);
break;