diff options
author | Frans Englich <frans.englich@nokia.com> | 2009-08-20 14:40:58 (GMT) |
---|---|---|
committer | Frans Englich <frans.englich@nokia.com> | 2009-08-20 14:43:22 (GMT) |
commit | efea248b4b725ca429793874eb168ad4b43c7994 (patch) | |
tree | d2e2666bbbbee442bc9be38bf6eff4de54c0a34e | |
parent | 2564ed5168b61e81deb0d847a9a8d24dbfa6b84d (diff) | |
download | Qt-efea248b4b725ca429793874eb168ad4b43c7994.zip Qt-efea248b4b725ca429793874eb168ad4b43c7994.tar.gz Qt-efea248b4b725ca429793874eb168ad4b43c7994.tar.bz2 |
Document stack size.
Addresses review comment.
Reviewed-by: TrustMe
-rw-r--r-- | tests/auto/qprocess/tst_qprocess.cpp | 17 |
1 files 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(); |