summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-06 16:51:28 (GMT)
committerJoerg Bornemann <joerg.bornemann@trolltech.com>2009-08-06 16:54:25 (GMT)
commit16b3825bc4ec3335bac412e7070b12f7340477e0 (patch)
tree6224c70c32434b8542b029804a3007e2a3607770 /tests
parent7ab03e0565bef0f38ff70c069a4b0b0bdb234d68 (diff)
downloadQt-16b3825bc4ec3335bac412e7070b12f7340477e0.zip
Qt-16b3825bc4ec3335bac412e7070b12f7340477e0.tar.gz
Qt-16b3825bc4ec3335bac412e7070b12f7340477e0.tar.bz2
tst_qsharedpointer compile fix for Windows CE
There's no time() on Windows CE. Reviewed-by: Daniel Molkentin
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qsharedpointer/tst_qsharedpointer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qsharedpointer/tst_qsharedpointer.cpp b/tests/auto/qsharedpointer/tst_qsharedpointer.cpp
index 5214edb..1101a08 100644
--- a/tests/auto/qsharedpointer/tst_qsharedpointer.cpp
+++ b/tests/auto/qsharedpointer/tst_qsharedpointer.cpp
@@ -1407,7 +1407,11 @@ void tst_QSharedPointer::threadStressTest()
base.clear();
+#ifdef Q_OS_WINCE
+ srand(QDateTime::currentDateTime().toTime_t());
+#else
srand(time(NULL));
+#endif
// start threads
for (int i = 0; i < allThreads.count(); ++i)
if (allThreads[i]) allThreads[i]->start();