summaryrefslogtreecommitdiff
path: root/src/plugins/autotest
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@qt.io>2019-07-12 15:53:56 +0200
committerTim Jenssen <tim.jenssen@qt.io>2019-07-12 15:53:56 +0200
commit333b33edbe9805e00772c68c7a7f47c8394b786b (patch)
treebcf4f598ce58b3b99ae103e6f2d4ef12c790b84b /src/plugins/autotest
parentf7520b7d991c34b3d8e3d1d726dc0b606f32c835 (diff)
parent51cd2885ef56d43b8f421046fab6e5f85f8e6484 (diff)
downloadqt-creator-333b33edbe9805e00772c68c7a7f47c8394b786b.tar.gz
Merge remote-tracking branch 'origin/4.10'
Change-Id: Iaf27911e4e9fb762c1a24c84c458462bafe95728
Diffstat (limited to 'src/plugins/autotest')
-rw-r--r--src/plugins/autotest/testcodeparser.cpp6
-rw-r--r--src/plugins/autotest/testrunner.cpp7
2 files changed, 8 insertions, 5 deletions
diff --git a/src/plugins/autotest/testcodeparser.cpp b/src/plugins/autotest/testcodeparser.cpp
index c944073dc7..755d0e57de 100644
--- a/src/plugins/autotest/testcodeparser.cpp
+++ b/src/plugins/autotest/testcodeparser.cpp
@@ -110,7 +110,7 @@ void TestCodeParser::setState(State state)
m_partialUpdatePostponed = false;
qCDebug(LOG) << "calling scanForTests with postponed files (setState)";
if (!m_reparseTimer.isActive())
- scanForTests(m_postponedFiles.toList());
+ scanForTests(Utils::toList(m_postponedFiles));
}
}
}
@@ -469,7 +469,7 @@ void TestCodeParser::onPartialParsingFinished()
m_partialUpdatePostponed = false;
qCDebug(LOG) << "calling scanForTests with postponed files (onPartialParsingFinished)";
if (!m_reparseTimer.isActive())
- scanForTests(m_postponedFiles.toList());
+ scanForTests(Utils::toList(m_postponedFiles));
} else {
m_dirty |= m_codeModelParsing;
if (m_dirty) {
@@ -491,7 +491,7 @@ void TestCodeParser::onPartialParsingFinished()
void TestCodeParser::parsePostponedFiles()
{
m_reparseTimerTimedOut = true;
- scanForTests(m_postponedFiles.toList());
+ scanForTests(Utils::toList(m_postponedFiles));
}
void TestCodeParser::releaseParserInternals()
diff --git a/src/plugins/autotest/testrunner.cpp b/src/plugins/autotest/testrunner.cpp
index 95e9091d37..bd5a5f1388 100644
--- a/src/plugins/autotest/testrunner.cpp
+++ b/src/plugins/autotest/testrunner.cpp
@@ -176,10 +176,13 @@ void TestRunner::scheduleNext()
tr("Executable path is empty. (%1)").arg(m_currentConfig->displayName()));
delete m_currentConfig;
m_currentConfig = nullptr;
- if (m_selectedTests.isEmpty())
+ if (m_selectedTests.isEmpty()) {
+ if (m_fakeFutureInterface)
+ m_fakeFutureInterface->reportFinished();
onFinished();
- else
+ } else {
onProcessFinished();
+ }
return;
}
if (!m_currentConfig->project())