diff options
author | Christian Stenger <christian.stenger@qt.io> | 2020-11-27 09:47:57 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2021-12-10 05:42:03 +0000 |
commit | 3989245562dbd8f98a4e85adb89c75c1b7a1bbe3 (patch) | |
tree | 5670b406e6f7044b02bbff38f127a254213b3908 /src/plugins/autotest/quick | |
parent | 1cc50c8dcc930249953e0e8bef172215deecfd2f (diff) | |
download | qt-creator-3989245562dbd8f98a4e85adb89c75c1b7a1bbe3.tar.gz |
AutoTest: Allow handling of maximum warnings for QtTest
If the maximum number of warnings is reached the test will be
canceled automatically. Allow to handle this from the user side
in case it might be needed.
Fixes: QTCREATORBUG-26637
Change-Id: I239eca280cdc2ce46f6d64cd53b8f3ad0205f7f2
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/autotest/quick')
-rw-r--r-- | src/plugins/autotest/quick/quicktestconfiguration.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/autotest/quick/quicktestconfiguration.cpp b/src/plugins/autotest/quick/quicktestconfiguration.cpp index bd02a88be2..8ede65e66b 100644 --- a/src/plugins/autotest/quick/quicktestconfiguration.cpp +++ b/src/plugins/autotest/quick/quicktestconfiguration.cpp @@ -79,6 +79,10 @@ QStringList QuickTestConfiguration::argumentsForTestRunner(QStringList *omitted) if (qtSettings->noCrashHandler.value()) arguments << "-nocrashhandler"; } + + if (qtSettings->limitWarnings.value() && qtSettings->maxWarnings.value() != 2000) + arguments << "-maxwarnings" << QString::number(qtSettings->maxWarnings.value()); + return arguments; } |