diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-12-14 09:51:25 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-12-14 09:56:21 (GMT) |
commit | 8b46b4cc0e1df56d40535b381986eb455806c589 (patch) | |
tree | 464022c157dea73c704db140a6bc46dbf7a3b660 /tests | |
parent | 76213ac8028079a9933548625bd917f49862f4c1 (diff) | |
download | Qt-8b46b4cc0e1df56d40535b381986eb455806c589.zip Qt-8b46b4cc0e1df56d40535b381986eb455806c589.tar.gz Qt-8b46b4cc0e1df56d40535b381986eb455806c589.tar.bz2 |
Stabilize test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp | 1 | ||||
-rw-r--r-- | tests/auto/qsharedmemory/tst_qsharedmemory.cpp | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp index a4931ab..03a587a 100644 --- a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp +++ b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp @@ -1354,6 +1354,7 @@ void tst_QGraphicsItem::selected() view.setFixedSize(250, 250); view.show(); + QTest::qWaitForWindowShown(&view); qApp->processEvents(); qApp->processEvents(); diff --git a/tests/auto/qsharedmemory/tst_qsharedmemory.cpp b/tests/auto/qsharedmemory/tst_qsharedmemory.cpp index f72b6f7..4148594 100644 --- a/tests/auto/qsharedmemory/tst_qsharedmemory.cpp +++ b/tests/auto/qsharedmemory/tst_qsharedmemory.cpp @@ -756,12 +756,12 @@ void tst_QSharedMemory::simpleProcessProducerConsumer() ++failedProcesses; } - producer.waitForFinished(5000); + QVERIFY(producer.waitForFinished(5000)); bool consumerFailed = false; while (!consumers.isEmpty()) { - consumers.first()->waitForFinished(2000); + QVERIFY(consumers.first()->waitForFinished(3000)); if (consumers.first()->state() == QProcess::Running || consumers.first()->exitStatus() != QProcess::NormalExit || consumers.first()->exitCode() != 0) { |