summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTatiana Borisova <tatiana.borisova@qt.io>2021-12-17 11:24:02 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-12-20 15:00:59 +0000
commit09ef3ac64f35e308dd324dd8e9d0a1bb04fef195 (patch)
treec9adc4782f737002289a55f8e783229fe0aa9449
parentd915bb8b5f872c403e47270ded349e31efed0bc8 (diff)
tst_qglobalstatic is halted on INTEGRITY device
- Stress test creates too many threads on run time. Testing system is limited in 123. Task-number: QTBUG-99123 Change-Id: I215074fa432c8aa18b2a753169646841c01d0b2a Reviewed-by: Kimmo Ollila <kimmo.ollila@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 43e9f86cc15fe5b394ee1690b302104118572fe1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--tests/auto/corelib/global/qglobalstatic/tst_qglobalstatic.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/corelib/global/qglobalstatic/tst_qglobalstatic.cpp b/tests/auto/corelib/global/qglobalstatic/tst_qglobalstatic.cpp
index 626c3757da..5c2c525199 100644
--- a/tests/auto/corelib/global/qglobalstatic/tst_qglobalstatic.cpp
+++ b/tests/auto/corelib/global/qglobalstatic/tst_qglobalstatic.cpp
@@ -206,7 +206,13 @@ void tst_QGlobalStatic::threadStressTest()
if (expectedConstructionCount <= 0)
QSKIP("This test cannot be run more than once");
+#ifdef Q_OS_INTEGRITY
+ // OPEN_REALTIME_THREADS = 123 on current INTEGRITY environment
+ // if try to create more, app is halted
+ const int numThreads = 122;
+#else
const int numThreads = 200;
+#endif
ThreadStressTestThread threads[numThreads];
QReadWriteLock lock;
lock.lockForWrite();