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>
This commit is contained in:
parent
f8b74a4957
commit
43e9f86cc1
@ -206,7 +206,13 @@ void tst_QGlobalStatic::threadStressTest()
|
|||||||
if (expectedConstructionCount <= 0)
|
if (expectedConstructionCount <= 0)
|
||||||
QSKIP("This test cannot be run more than once");
|
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;
|
const int numThreads = 200;
|
||||||
|
#endif
|
||||||
ThreadStressTestThread threads[numThreads];
|
ThreadStressTestThread threads[numThreads];
|
||||||
QReadWriteLock lock;
|
QReadWriteLock lock;
|
||||||
lock.lockForWrite();
|
lock.lockForWrite();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user