diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2018-01-09 18:21:45 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2018-03-21 14:23:13 +0000 |
commit | 79493a3ee129c014298c6ef694415b8f0fffd74b (patch) | |
tree | e6e3041f01f07eb9b9aca43c72ee738e1cf3d11e /src/testlib/qbenchmarkvalgrind_p.h | |
parent | 6e8e9979d0786d7d730528c2888e0e1af4fb96ca (diff) |
Make QCOMPARE(-inf, -inf) and QCOMPARE(NaN, NaN) succeed
This will make two floating points containing NaN compare as equal,
instead of the regular nan != nan IEEE behavior (which isn't very useful
in a unit-test framework).
Note that this does not apply to indirect comparisons, for example via
QVariant.
Change-Id: I39332e0a867442d58082fffd150851acfdd18c23
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/testlib/qbenchmarkvalgrind_p.h')
0 files changed, 0 insertions, 0 deletions