summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2009-05-26 12:03:36 (GMT)
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2009-05-26 12:03:36 (GMT)
commit946d6a6b5ce2348384be64f9573c06369aed16b5 (patch)
treebdbc377c2da739a9e3e7adaa6b02b2af722173bb /tests
parent2394204f710832389125c3bee1e6198f5a422eb5 (diff)
downloadQt-946d6a6b5ce2348384be64f9573c06369aed16b5.zip
Qt-946d6a6b5ce2348384be64f9573c06369aed16b5.tar.gz
Qt-946d6a6b5ce2348384be64f9573c06369aed16b5.tar.bz2
Reduced number of processes in one qprocess test case to avoid running out
of process handles.
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qprocess/tst_qprocess.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/auto/qprocess/tst_qprocess.cpp b/tests/auto/qprocess/tst_qprocess.cpp
index 2610af9..8101708 100644
--- a/tests/auto/qprocess/tst_qprocess.cpp
+++ b/tests/auto/qprocess/tst_qprocess.cpp
@@ -1623,12 +1623,10 @@ void tst_QProcess::spaceArgsTest()
//-----------------------------------------------------------------------------
void tst_QProcess::exitCodeTest()
{
-#if defined(Q_OS_SYMBIAN) && defined(Q_CC_NOKIAX86)
- // WINSCW builds in Symbian panic somewhere deep inside Symbian codes
- // when eventdispather is deleted if too many test iterations are used.
- // Reason for this is unclear.
- // TODO: Remove special case when eventdispatcher is fixed.
- for (int i = 0; i < 25; ++i) {
+#if defined(Q_OS_SYMBIAN)
+ // Kernel will run out of process handles on some hw, as there is some
+ // delay before they are recycled, so limit the amount of processes.
+ for (int i = 0; i < 50; ++i) {
#else
for (int i = 0; i < 255; ++i) {
#endif