summaryrefslogtreecommitdiffstats
path: root/tests/auto/qtessellator/testtessellator.cpp
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-05-17 14:58:00 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-05-17 14:58:00 (GMT)
commitcb2980a09aefcc207eacb500d5a3c74f064859dd (patch)
treeb119109514d04a7afa503ecd08a774483821c8d8 /tests/auto/qtessellator/testtessellator.cpp
parent4109badc4321effeeb798dd101479be7dffdbe3d (diff)
parent5aa1cbcdacd19b2e526e358eddac1b7d55a994b5 (diff)
downloadQt-cb2980a09aefcc207eacb500d5a3c74f064859dd.zip
Qt-cb2980a09aefcc207eacb500d5a3c74f064859dd.tar.gz
Qt-cb2980a09aefcc207eacb500d5a3c74f064859dd.tar.bz2
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-qa-staging into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/qt-qa-staging: (114 commits) Fixed license header. Ensure that recursive QMAKE_EXTRA_TARGETS use the correct makefile Remove Q_ASSERT's from qsharedmemory autotest Remove Q_ASSERT's from QNetworkReply autotest Remove Q_ASSERT's from qabstractxmlnodemodel test Remove Q_ASSERT from QXmlStream autotest Remove Q_ASSERT from qxmlquery autotest Remove Q_ASSERT's from QXmlStream autotest Remove Q_ASSERT from QItemModel autotest Remove Q_ASSERT's from qxmlquery autotest Remove Q_ASSERT from qxmlquery autotest Remove Q_ASSERT's from QXmlStream autotest Remove Q_ASSERT from qabstractxmlnodemodel test Remove Q_ASSERT from qscriptvaluegenerated test Remove Q_ASSERT from QVariant autotest Remove Q_ASSERT's from QTreeView autotest Remove Q_ASSERT from qtesselator autotest Remove unused function from qtessellator autotest Remove Q_ASSERT from qscriptvaluegenerated test Remove Q_ASSERT's from qscriptvaluegenerated test ...
Diffstat (limited to 'tests/auto/qtessellator/testtessellator.cpp')
-rw-r--r--tests/auto/qtessellator/testtessellator.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qtessellator/testtessellator.cpp b/tests/auto/qtessellator/testtessellator.cpp
index 339f05f..d8d6f6f 100644
--- a/tests/auto/qtessellator/testtessellator.cpp
+++ b/tests/auto/qtessellator/testtessellator.cpp
@@ -42,6 +42,7 @@
#include <private/qtessellator_p.h>
#include "math.h"
+#include <QtCore/QDebug>
class TestTessellator : public QTessellator
{
@@ -91,7 +92,8 @@ void test_tessellate_polygon_rect(QVector<XTrapezoid> *traps, const QPointF *poi
bool winding)
{
// 5 points per rect
- Q_ASSERT(nPoints % 5 == 0);
+ if (nPoints % 5 != 0)
+ qWarning() << Q_FUNC_INFO << "multiples of 5 points expected";
TestTessellator t;
t.traps = traps;