diff options
author | Christian Stenger <[email protected]> | 2024-01-08 16:24:14 +0100 |
---|---|---|
committer | Christian Stenger <[email protected]> | 2024-02-01 07:40:15 +0000 |
commit | 1d7f6451bb2ea7bece89cd42ce3a60feac5fe9ea (patch) | |
tree | c93d8e0ca3c5720f2294e4f8659b4aae34dcebeb /src/plugins/autotest/testresult.h | |
parent | 16123997b8dab884b9eb4973b6ffb283189a2c1e (diff) |
AutoTest: Parse for file paths in Qt test output
Add option to explicitly check for pattern file://path
and file://path:line which can be provided by the
test code to improve the location information of
qDebug() and friends.
Task-number: QTCREATORBUG-30143
Change-Id: I050ab544c0173769995f7c5e97c89b497ded9215
Reviewed-by: David Schulz <[email protected]>
Diffstat (limited to 'src/plugins/autotest/testresult.h')
-rw-r--r-- | src/plugins/autotest/testresult.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/autotest/testresult.h b/src/plugins/autotest/testresult.h index 80229d37362..0f193eb3558 100644 --- a/src/plugins/autotest/testresult.h +++ b/src/plugins/autotest/testresult.h @@ -52,6 +52,11 @@ enum class ResultType { LAST_TYPE = Invalid }; +static inline bool isTestMessage(const ResultType &result) +{ + return result >= ResultType::MessageDebug && result <= ResultType::MessageError; +} + inline auto qHash(const ResultType &result) { return QT_PREPEND_NAMESPACE(qHash(int(result))); |