summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/global
diff options
context:
space:
mode:
authorTatiana Borisova <tatiana.borisova@qt.io>2021-12-17 11:24:02 +0200
committerTatiana Borisova <tatiana.borisova@qt.io>2021-12-20 10:14:38 +0200
commit43e9f86cc15fe5b394ee1690b302104118572fe1 (patch)
tree3de66a186d1fd103c3ec5b224d392d5be1079563 /tests/auto/corelib/global
parentf8b74a49576ea453b3bfc7356a23cd4f2171fa76 (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 Pick-to: 6.2 6.3 Change-Id: I215074fa432c8aa18b2a753169646841c01d0b2a Reviewed-by: Kimmo Ollila <kimmo.ollila@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/global')
-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 d45333e435..ee85a3b77f 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();