From efea248b4b725ca429793874eb168ad4b43c7994 Mon Sep 17 00:00:00 2001 From: Frans Englich Date: Thu, 20 Aug 2009 16:40:58 +0200 Subject: Document stack size. Addresses review comment. Reviewed-by: TrustMe --- tests/auto/qprocess/tst_qprocess.cpp | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/tests/auto/qprocess/tst_qprocess.cpp b/tests/auto/qprocess/tst_qprocess.cpp index 26e00bd..368b2a0 100644 --- a/tests/auto/qprocess/tst_qprocess.cpp +++ b/tests/auto/qprocess/tst_qprocess.cpp @@ -1316,6 +1316,15 @@ protected slots: private: int exitCode; +#ifdef Q_OS_SYMBIAN + enum + { + /** + * The maximum stack size. + */ + SymbianStackSize = 0x14000 + }; +#endif }; //----------------------------------------------------------------------------- @@ -1324,7 +1333,7 @@ void tst_QProcess::processInAThread() for (int i = 0; i < 10; ++i) { TestThread thread; #if defined(Q_OS_SYMBIAN) - thread.setStackSize(0x14000); + thread.setStackSize(SymbianStackSize); #endif thread.start(); QVERIFY(thread.wait(10000)); @@ -1349,9 +1358,9 @@ void tst_QProcess::processesInMultipleThreads() thread2.serial = serialCounter++; thread3.serial = serialCounter++; - thread1.setStackSize(0x14000); - thread2.setStackSize(0x14000); - thread3.setStackSize(0x14000); + thread1.setStackSize(SymbianStackSize); + thread2.setStackSize(SymbianStackSize); + thread3.setStackSize(SymbianStackSize); #endif thread1.start(); thread2.start(); -- cgit v0.12