test: only QEXPECT_FAIL tst_qgraphicstransform in release mode
The floating point problem which causes this test to fail is not triggered if Qt is compiled in debug mode. Enable QEXPECT_FAIL more narrowly. Task-number: QTBUG-20661 Change-Id: I25f3260b516cd4fda9d8b711aa1140cbda821412 Reviewed-on: http://codereview.qt.nokia.com/2719 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
This commit is contained in:
parent
61d60402bf
commit
5d481fa240
@ -1,3 +1,5 @@
|
||||
load(qttest_p4)
|
||||
SOURCES += tst_qgraphicstransform.cpp
|
||||
CONFIG += parallel_test
|
||||
|
||||
linux-*:contains(QT_CONFIG,release):DEFINES+=MAY_HIT_QTBUG_20661
|
||||
|
@ -359,7 +359,7 @@ void tst_QGraphicsTransform::rotation3dArbitraryAxis()
|
||||
exp.rotate(angle, axis);
|
||||
QTransform expected = exp.toTransform(1024.0f);
|
||||
|
||||
#ifdef Q_OS_LINUX
|
||||
#if defined(MAY_HIT_QTBUG_20661)
|
||||
// These failures possibly relate to the float vs qreal issue mentioned
|
||||
// in the comment above fuzzyCompare().
|
||||
if (sizeof(qreal) == sizeof(double)) {
|
||||
|
Loading…
Reference in New Issue
Block a user