summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-04-23 15:09:35 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-04-24 18:16:54 +0000
commite413874467c01cff63bb53e630d1e5d9d19fda53 (patch)
tree7987a42839cdc5112234de414b1a0521cbab789f /tests
parent143cf9e4675ff0f1317dce915aef009886307cf8 (diff)
Fix division by zero in radial gradiants with NEON
The NEON implementation uses rsqrt and thus can not be taken on 0, so replace the minimum with something close to zero instead of zero. Task-number: QTBUG-59961 Change-Id: Ia39e45be675b056c1e22900495ce9ba4e8b70e5f Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/gui/painting/qpainter/tst_qpainter.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/auto/gui/painting/qpainter/tst_qpainter.cpp b/tests/auto/gui/painting/qpainter/tst_qpainter.cpp
index ba405e2860..181c609c6e 100644
--- a/tests/auto/gui/painting/qpainter/tst_qpainter.cpp
+++ b/tests/auto/gui/painting/qpainter/tst_qpainter.cpp
@@ -2963,10 +2963,6 @@ void fpe_steepSlopes()
void fpe_radialGradients()
{
-#if defined(Q_PROCESSOR_ARM)
- QEXPECT_FAIL("", "Test fails for ARM (QTBUG-59961)", Continue);
-#endif
-
FpExceptionChecker checker(FE_UNDERFLOW | FE_OVERFLOW | FE_INVALID | FE_DIVBYZERO);
QImage img(21, 21, QImage::Format_ARGB32_Premultiplied);