qt6-bb10/src/testlib
Edward Welbourne 3abfa4dfff QtTestLib: handle float16 the same as double and float
In QCOMPARE, handle NaNs and infinities the way tests want them
handled, rather than by strict IEEE rules. In particular, if a test
expects NaN, this lets it treat that just like any other expected
value, despite NaN != NaN as float16 values. Likewise, format
infinities and NaNs specially in toString() so that they're reported
consistently.

Enable the qfloat16 tests that depend on this QCOMPARE() behavior.
Refise the testlib selftest's float test to test qfloat16 the same way
it tests float and double (and format the test the same way).

This is a follow-up to 37f617c405.

Change-Id: I433256a09b1657e6725d68d07c5f80d805bf586a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2019-04-24 13:09:15 +00:00
..
3rdparty Update 3rdparty valgrind headers to Valgrind 3.14.0 2018-10-17 11:26:08 +00:00
doc Merge remote-tracking branch 'origin/5.12' into dev 2019-01-26 08:35:40 +01:00
Qt5TestConfigExtras.cmake.in
configure.json Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
qabstractitemmodeltester.cpp Fix ICE on QNX 6.6 2018-10-05 11:30:42 +00:00
qabstractitemmodeltester.h Fix use of deprecated ItemDataRoles Background/TextColorRole 2018-11-05 21:58:37 +00:00
qabstracttestlogger.cpp testlib: Feed test log messages to Apple Unified Logging 2018-03-09 16:31:53 +00:00
qabstracttestlogger_p.h More nullptr usage in headers 2019-03-14 07:37:52 +00:00
qappletestlogger.cpp Apple test logger: Handle test log messages without a context 2019-03-26 19:15:26 +00:00
qappletestlogger_p.h Apple test logger: Handle test log messages without a context 2019-03-26 19:15:26 +00:00
qasciikey.cpp
qbenchmark.cpp
qbenchmark.h Testlib: Rename qtest_global.h to qttestglobal.h 2018-03-21 10:31:01 +00:00
qbenchmark_p.h Testlib: Rename qtest_global.h to qttestglobal.h 2018-03-21 10:31:01 +00:00
qbenchmarkevent.cpp Widen out parameter "result" of the native event filters for Qt 6 2019-03-22 16:19:48 +00:00
qbenchmarkevent_p.h Widen out parameter "result" of the native event filters for Qt 6 2019-03-22 16:19:48 +00:00
qbenchmarkmeasurement.cpp
qbenchmarkmeasurement_p.h
qbenchmarkmetric.cpp Fix build for Android with android-clang in r17 2018-06-06 11:36:33 +00:00
qbenchmarkmetric.h Testlib: Rename qtest_global.h to qttestglobal.h 2018-03-21 10:31:01 +00:00
qbenchmarkmetric_p.h Testlib: Rename qtest_global.h to qttestglobal.h 2018-03-21 10:31:01 +00:00
qbenchmarkperfevents.cpp
qbenchmarkperfevents_p.h
qbenchmarktimemeasurers_p.h
qbenchmarkvalgrind.cpp QBenchmarkValgrindUtils: port to QRegularExpression 2019-04-09 06:57:46 +00:00
qbenchmarkvalgrind_p.h
qcsvbenchmarklogger.cpp
qcsvbenchmarklogger_p.h More nullptr usage in headers 2019-03-14 07:37:52 +00:00
qplaintestlogger.cpp testlib: Add BXPASS and BXFAIL 2019-01-29 12:18:15 +00:00
qplaintestlogger_p.h More nullptr usage in headers 2019-03-14 07:37:52 +00:00
qsignaldumper.cpp Test QTest's signal dumper 2019-03-27 08:56:09 +00:00
qsignaldumper_p.h
qsignalspy.h More nullptr usage in headers 2019-03-14 07:37:52 +00:00
qsignalspy.qdoc QtGui/Network/OpenGl/Widgets/Xml: use \nullptr in documentation 2019-02-20 18:58:58 +00:00
qtaptestlogger.cpp testlib: Add BXPASS and BXFAIL 2019-01-29 12:18:15 +00:00
qtaptestlogger_p.h More nullptr usage in headers 2019-03-14 07:37:52 +00:00
qteamcitylogger.cpp Replace qMove with std::move 2019-04-06 11:00:38 +00:00
qteamcitylogger_p.h More nullptr usage in headers 2019-03-14 07:37:52 +00:00
qtest.h Optimize QTimer::singleShot(0, ...) when taking PMF or Functor callable 2019-04-06 21:16:56 +00:00
qtest_gui.h
qtest_network.h
qtest_widgets.h
qtestaccessible.h Testlib: Rename qtest_global.h to qttestglobal.h 2018-03-21 10:31:01 +00:00
qtestassert.h
qtestblacklist.cpp Merge remote-tracking branch 'origin/5.12' into 5.13 2019-02-22 01:00:27 +01:00
qtestblacklist_p.h Bring QTestPrivate::checkBlackLists() back 2018-10-15 17:30:57 +00:00
qtestcase.cpp QtTestLib: handle float16 the same as double and float 2019-04-24 13:09:15 +00:00
qtestcase.h Remove handling of missing very old compiler feature check 2019-04-06 13:27:15 +00:00
qtestcase.qdoc Merge remote-tracking branch 'origin/5.12.1' into 5.12 2019-01-23 10:13:29 +01:00
qtestcoreelement_p.h More nullptr usage in headers 2019-03-14 07:37:52 +00:00
qtestcorelist_p.h More nullptr usage in headers 2019-03-14 07:37:52 +00:00
qtestdata.cpp
qtestdata.h Testlib: Rename qtest_global.h to qttestglobal.h 2018-03-21 10:31:01 +00:00
qtestelement.cpp
qtestelement_p.h
qtestelementattribute.cpp
qtestelementattribute_p.h
qtestevent.h Fix win32-clang-msvc build due to -Werror,-Wunused-private-field 2018-03-23 15:16:01 +00:00
qtestevent.qdoc Doc: Fix linking errors qtbase 2019-01-03 09:45:23 +00:00
qtesteventloop.h testlib: Mark unused member variable for future removal 2018-06-05 06:00:32 +00:00
qtesthelpers_p.h
qtestkeyboard.h qtlite: Fix build the source code with -no-feature-shortcut 2019-02-25 12:20:36 +00:00
qtestlog.cpp Merge remote-tracking branch 'origin/5.12' into 5.13 2019-03-06 12:31:50 +01:00
qtestlog_p.h testlib: Prevent Apple test logger from stomping on other loggers 2019-03-05 22:29:57 +00:00
qtestmouse.cpp Testlib: Rename qtest_global.h to qttestglobal.h 2018-03-21 10:31:01 +00:00
qtestmouse.h Testlib: Rename qtest_global.h to qttestglobal.h 2018-03-21 10:31:01 +00:00
qtestresult.cpp testlib: Add BXPASS and BXFAIL 2019-01-29 12:18:15 +00:00
qtestresult_p.h Testlib: Rename qtest_global.h to qttestglobal.h 2018-03-21 10:31:01 +00:00
qtestspontaneevent.h
qtestsystem.h testlib: Move qtestsystem helpers to their respective modules 2018-07-16 15:30:30 +00:00
qtesttable.cpp QtTest: compile in C++17 mode: no more std::unary_function 2018-05-15 17:07:04 +00:00
qtesttable_p.h Testlib: Rename qtest_global.h to qttestglobal.h 2018-03-21 10:31:01 +00:00
qtesttouch.h Testlib: Rename qtest_global.h to qttestglobal.h 2018-03-21 10:31:01 +00:00
qtestutil_macos.mm
qtestutil_macos_p.h
qtestxunitstreamer.cpp
qtestxunitstreamer_p.h
qttestglobal.h Testlib: Add a feature for the item model tester 2018-03-21 10:31:08 +00:00
qxctestlogger.mm
qxctestlogger_p.h
qxmltestlogger.cpp testlib: Add BXPASS and BXFAIL 2019-01-29 12:18:15 +00:00
qxmltestlogger_p.h More nullptr usage in headers 2019-03-14 07:37:52 +00:00
qxunittestlogger.cpp testlib: Add BXPASS and BXFAIL 2019-01-29 12:18:15 +00:00
qxunittestlogger_p.h More nullptr usage in headers 2019-03-14 07:37:52 +00:00
selfcover.pri Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
testlib.pro Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00