summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicssceneindex
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-10-29 08:37:26 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-10-29 08:37:26 (GMT)
commit25502811723a026a38c0a861a6a304d24b8e6a95 (patch)
tree553e0cbaba99b51db3940f47414719a505e8d529 /tests/auto/qgraphicssceneindex
parentdf37b2e9023bc2cebe00c77be6040019cfdc24b6 (diff)
downloadQt-25502811723a026a38c0a861a6a304d24b8e6a95.zip
Qt-25502811723a026a38c0a861a6a304d24b8e6a95.tar.gz
Qt-25502811723a026a38c0a861a6a304d24b8e6a95.tar.bz2
Stabilize tests
Diffstat (limited to 'tests/auto/qgraphicssceneindex')
-rw-r--r--tests/auto/qgraphicssceneindex/tst_qgraphicssceneindex.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qgraphicssceneindex/tst_qgraphicssceneindex.cpp b/tests/auto/qgraphicssceneindex/tst_qgraphicssceneindex.cpp
index 9dfd486..7d98748 100644
--- a/tests/auto/qgraphicssceneindex/tst_qgraphicssceneindex.cpp
+++ b/tests/auto/qgraphicssceneindex/tst_qgraphicssceneindex.cpp
@@ -45,6 +45,8 @@
#include <private/qgraphicsscenebsptreeindex_p.h>
#include <private/qgraphicssceneindex_p.h>
#include <private/qgraphicsscenelinearindex_p.h>
+#include "../../shared/util.h"
+
//TESTED_CLASS=
//TESTED_FILES=
@@ -356,7 +358,7 @@ void tst_QGraphicsSceneIndex::clear()
MyItem *item = new MyItem;
scene.addItem(item);
qApp->processEvents();
- QCOMPARE(item->numPaints, 1);
+ QTRY_COMPARE(item->numPaints, 1);
}
QTEST_MAIN(tst_QGraphicsSceneIndex)