aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/testoutputreader.h
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2017-09-20 11:20:25 +0200
committerChristian Stenger <christian.stenger@qt.io>2017-10-04 12:29:01 +0000
commit3eb8c88974a5b0e849ef806b09255b493174ca1a (patch)
tree98d864ed8f44b34eca26418d6918f55db7b702ca /src/plugins/autotest/testoutputreader.h
parent1a19afc3e21343d0c1defd437ca20a9144fe1736 (diff)
AutoTest: Improve process error handling
If the test executable cannot be started or it seems not to be the correct one or wrong arguments have been passed to it the user now gets a respective message inside the results pane. Task-number: QTCREATORBUG-18955 Change-Id: Ica68cdbb9e401c8d48a9ce8b23b65d5410d2075a Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/plugins/autotest/testoutputreader.h')
-rw-r--r--src/plugins/autotest/testoutputreader.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/autotest/testoutputreader.h b/src/plugins/autotest/testoutputreader.h
index ff04d8f4ce6..c9fe9cd19a4 100644
--- a/src/plugins/autotest/testoutputreader.h
+++ b/src/plugins/autotest/testoutputreader.h
@@ -44,13 +44,17 @@ public:
virtual void processOutput(const QByteArray &outputLine) = 0;
virtual void processStdError(const QByteArray &output);
+ bool hadValidOutput() const { return m_hadValidOutput; }
signals:
void newOutputAvailable(const QByteArray &output);
protected:
+ void reportResult(const TestResultPtr &result);
QFutureInterface<TestResultPtr> m_futureInterface;
QProcess *m_testApplication; // not owned
QString m_buildDir;
+private:
+ bool m_hadValidOutput = false;
};
} // namespace Internal