diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2020-04-15 10:14:30 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2020-04-15 09:02:55 +0000 |
commit | c463f09fcb63927c66bc3307ddcc88d85d38b2bc (patch) | |
tree | af5f6a3d49cd1f740a1886d3ed062e430419a46d /LICENSE.GPL2 | |
parent | b63baf03027fba777904673b5839e1aa779a975e (diff) |
tst_qquickmenu: fix flakiness resulting from floating point comparison
From the docs of QCOMPARE:
"[...] expecting 0 can fail when the actual value may be affected by
rounding errors. One solution to this is to offset both actual and
expected values by adding some suitable constant (such as 1)."
Pick-to: 5.15
Change-Id: Ie7c0db9b4eb6c7d9fdb503421242d309a39bc2ec
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'LICENSE.GPL2')
0 files changed, 0 insertions, 0 deletions