summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJanne Anttila <janne.anttila@digia.com>2009-10-06 08:41:36 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2009-10-07 02:36:34 (GMT)
commit9a025e28a7b3d86070667c6d4fa10fe46cb0acee (patch)
tree3ff57e30eb72536dce7dab5a945035b2828ae1f8
parent6dab18ed219aec5e83ee3feb1aa8e8f2df1fd3d7 (diff)
downloadQt-9a025e28a7b3d86070667c6d4fa10fe46cb0acee.zip
Qt-9a025e28a7b3d86070667c6d4fa10fe46cb0acee.tar.gz
Qt-9a025e28a7b3d86070667c6d4fa10fe46cb0acee.tar.bz2
Decrease tst_QThreadOnce::multipleThreads test num of thread for Symbian
In Symbian OS the maximum number of thread per process depends on stack size. With default 8KB stack size you can have 128 threads, with 16KB stack size you can have 64 threads etc. Since all qt threads nowadays have maximum stack size, we need to decrease the amount of threads in this test. Reviewed-by: TrustMe (cherry picked from commit 56087f7ffa0c64c34f55cf24a24d9337592b6c23)
-rw-r--r--tests/auto/qthreadonce/tst_qthreadonce.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qthreadonce/tst_qthreadonce.cpp b/tests/auto/qthreadonce/tst_qthreadonce.cpp
index a539a7f..2751e9d 100644
--- a/tests/auto/qthreadonce/tst_qthreadonce.cpp
+++ b/tests/auto/qthreadonce/tst_qthreadonce.cpp
@@ -134,7 +134,7 @@ void tst_QThreadOnce::sameThread()
void tst_QThreadOnce::multipleThreads()
{
-#if defined(Q_OS_WINCE) || defined(Q_OS_VXWORKS)
+#if defined(Q_OS_WINCE) || defined(Q_OS_VXWORKS) || defined(Q_OS_SYMBIAN)
const int NumberOfThreads = 20;
#else
const int NumberOfThreads = 100;