summaryrefslogtreecommitdiff
path: root/tests/auto/qtipc/qsharedmemory
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2011-01-13 16:08:42 +0200
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2011-01-13 16:16:19 +0200
commitc67b4cda2f5a7afd401ec3106e3a7b018fd9881d (patch)
tree9c9084b6836039404b424049f7af0030e31bb73b /tests/auto/qtipc/qsharedmemory
parent570e7b38487455d394b5b74a59edc639f3dc416f (diff)
downloadqt4-tools-c67b4cda2f5a7afd401ec3106e3a7b018fd9881d.tar.gz
Fix QSharedMemory and QSystemSemaphore autotests for Symbian
Reviewed-by: Janne Koskinen
Diffstat (limited to 'tests/auto/qtipc/qsharedmemory')
-rw-r--r--tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp b/tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp
index 5825524970..50205bcb98 100644
--- a/tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp
+++ b/tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp
@@ -51,7 +51,7 @@
#define EXISTING_SIZE 1024
#ifdef Q_OS_SYMBIAN
-#define SRCDIR "c:/data/qsharedmemorytemp/"
+#define SRCDIR "c:/data/qsharedmemorytemp/lackey/"
#define LACKEYDIR SRCDIR "lackey"
#elif defined(Q_OS_WINCE)
#define LACKEYDIR SRCDIR
@@ -624,6 +624,10 @@ public:
QVERIFY(producer.isAttached());
char *memory = (char*)producer.data();
memory[1] = '0';
+#if defined(Q_OS_SYMBIAN)
+ // Sleep a while to ensure that consumers start properly
+ QTest::qSleep(1000);
+#endif
QTime timer;
timer.start();
int i = 0;
@@ -645,10 +649,6 @@ public:
memory[0] = 'E';
QVERIFY(producer.unlock());
-#if defined(Q_OS_SYMBIAN)
- // Sleep a while to ensure that consumers start properly
- QTest::qSleep(1000);
-#endif
}
private: