forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/5.0'
Conflicts: src/libs/utils/processreaper.cpp src/plugins/clangcodemodel/clangmodelmanagersupport.cpp src/plugins/cmakeprojectmanager/cmakeprocess.cpp Change-Id: Ie248bcb02a80f3e02ab19d73033ce2ba31e7fd83
This commit is contained in:
@@ -117,12 +117,16 @@ QList<ITestConfiguration *> CTestTreeItem::testConfigurationsFor(const QStringLi
|
||||
config->setProject(project);
|
||||
config->setCommandLine(command);
|
||||
const ProjectExplorer::RunConfiguration *runConfig = target->activeRunConfiguration();
|
||||
Utils::Environment env = Utils::Environment::systemEnvironment();
|
||||
if (QTC_GUARD(runConfig)) {
|
||||
if (auto envAspect = runConfig->aspect<ProjectExplorer::EnvironmentAspect>())
|
||||
config->setEnvironment(envAspect->environment());
|
||||
else
|
||||
config->setEnvironment(Utils::Environment::systemEnvironment());
|
||||
env = envAspect->environment();
|
||||
}
|
||||
if (Utils::HostOsInfo::isWindowsHost()) {
|
||||
env.set("QT_FORCE_STDERR_LOGGING", "1");
|
||||
env.set("QT_LOGGING_TO_CONSOLE", "1");
|
||||
}
|
||||
config->setEnvironment(env);
|
||||
const ProjectExplorer::BuildConfiguration *buildConfig = target->activeBuildConfiguration();
|
||||
if (QTC_GUARD(buildConfig))
|
||||
config->setWorkingDirectory(buildConfig->buildDirectory());
|
||||
|
||||
@@ -153,8 +153,10 @@ QStringList filterInterfering(const QStringList &provided, QStringList *omitted,
|
||||
Utils::Environment prepareBasicEnvironment(const Utils::Environment &env)
|
||||
{
|
||||
Utils::Environment result(env);
|
||||
if (Utils::HostOsInfo::isWindowsHost())
|
||||
if (Utils::HostOsInfo::isWindowsHost()) {
|
||||
result.set("QT_FORCE_STDERR_LOGGING", "1");
|
||||
result.set("QT_LOGGING_TO_CONSOLE", "1");
|
||||
}
|
||||
const int timeout = AutotestPlugin::settings()->timeout;
|
||||
if (timeout > 5 * 60 * 1000) // Qt5.5 introduced hard limit, Qt5.6.1 added env var to raise this
|
||||
result.set("QTEST_FUNCTION_TIMEOUT", QString::number(timeout));
|
||||
|
||||
@@ -312,6 +312,7 @@ void QuickTestParser::handleDirectoryChanged(const QString &directory)
|
||||
return filesAndDates.value(file) != watched.value(file);
|
||||
});
|
||||
if (timestampChanged) {
|
||||
m_watchedFiles[directory] = filesAndDates;
|
||||
PathsAndLanguages paths;
|
||||
paths.maybeInsert(Utils::FilePath::fromString(directory), Dialect::Qml);
|
||||
QFutureInterface<void> future;
|
||||
|
||||
@@ -391,11 +391,9 @@ void TestTreeModel::synchronizeTestTools()
|
||||
|
||||
for (ITestTool *testTool : qAsConst(tools)) {
|
||||
ITestTreeItem *testToolRootNode = testTool->rootNode();
|
||||
if (testTool->active()) {
|
||||
invisibleRoot->appendChild(testToolRootNode);
|
||||
if (!oldFrameworkRoots.removeOne(testToolRootNode))
|
||||
newlyAdded.insert(testTool);
|
||||
}
|
||||
invisibleRoot->appendChild(testToolRootNode);
|
||||
if (!oldFrameworkRoots.removeOne(testToolRootNode))
|
||||
newlyAdded.insert(testTool);
|
||||
}
|
||||
|
||||
if (project) {
|
||||
|
||||
Reference in New Issue
Block a user