summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsharedmemory/tst_qsharedmemory.cpp
diff options
context:
space:
mode:
authorFrans Englich <frans.englich@nokia.com>2009-08-20 15:17:33 +0200
committerFrans Englich <frans.englich@nokia.com>2009-08-20 15:17:33 +0200
commita19377ede0b089022544413b590fa8025c737ccb (patch)
tree8bcd6c4a754cb9d7e458c052377b876a878601b8 /tests/auto/qsharedmemory/tst_qsharedmemory.cpp
parent612da33a9e09d5dba2e84383b9f26fbfed49303b (diff)
Cleanup code.
Diffstat (limited to 'tests/auto/qsharedmemory/tst_qsharedmemory.cpp')
-rw-r--r--tests/auto/qsharedmemory/tst_qsharedmemory.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/auto/qsharedmemory/tst_qsharedmemory.cpp b/tests/auto/qsharedmemory/tst_qsharedmemory.cpp
index f02e7a3ac5..b92011e418 100644
--- a/tests/auto/qsharedmemory/tst_qsharedmemory.cpp
+++ b/tests/auto/qsharedmemory/tst_qsharedmemory.cpp
@@ -674,7 +674,14 @@ void tst_QSharedMemory::simpleThreadedProducerConsumer()
Producer p;
#if defined(Q_OS_SYMBIAN)
- p.setStackSize(0x14000);
+ enum
+ {
+ /**
+ * The maximum stack size.
+ */
+ SymbianStackSize = 0x14000
+ };
+ p.setStackSize(SymbianStackSize);
#endif
if (producerIsThread)
p.start();
@@ -683,7 +690,7 @@ void tst_QSharedMemory::simpleThreadedProducerConsumer()
for (int i = 0; i < threads; ++i) {
consumers.append(new Consumer());
#if defined(Q_OS_SYMBIAN)
- consumers.last()->setStackSize(0x14000);
+ consumers.last()->setStackSize(SymbianStackSize);
#endif
consumers.last()->start();
}