qt6-bb10/tests/auto/testlib/selftests
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
..
assert Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
badxml Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
benchlibcallgrind Fix inline ASM to use local labels for jump operations 2019-01-25 08:45:54 +00:00
benchlibcounting Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
benchlibeventcounter Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
benchliboptions Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
benchlibtickcounter Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
benchlibwalltime Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
blacklisted Merge remote-tracking branch 'origin/5.13' into dev 2019-02-20 09:51:12 +01:00
cmptest Replace Q_DECL_NOTHROW with noexcept the remaining places 2019-04-09 14:48:42 +00:00
commandlinedata Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
counting Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
crashes Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
datatable Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
datetime Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
deleteLater Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
deleteLater_noApp Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
differentexec Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
exceptionthrow Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
expectfail Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
failcleanup Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
faildatatype
failfetchtype
failinit Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
failinitdata Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
fetchbogus Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
findtestdata Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
float QtTestLib: handle float16 the same as double and float 2019-04-24 13:09:15 +00:00
globaldata Fix the skip-check in TestMethods::invokeTest() 2019-03-29 14:00:03 +00:00
keyboard Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
longstring Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
maxwarnings Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
mouse Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
multiexec Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
pairdiagnostics Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
printdatatags Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
printdatatagswithglobaltags Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
qexecstringlist Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
signaldumper Test QTest's signal dumper 2019-03-27 08:56:09 +00:00
silent Dodge qFatal() so as to get coverage results despite it 2019-02-11 15:38:29 +00:00
singleskip Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
skip Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
skipcleanup Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
skipinit Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
skipinitdata Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
sleep Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
strcmp Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
subtest Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
test Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
testlib Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
tuplediagnostics Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
verbose1 Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
verbose2 Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
verifyexceptionthrown Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
warnings Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
watchdog
xunit Add a feature to enable CodeCoverage analysis of testlib 2019-01-24 15:51:13 +00:00
.gitignore
expected_assert.lightxml
expected_assert.tap
expected_assert.teamcity
expected_assert.txt
expected_assert.xml
expected_assert.xunitxml
expected_badxml.lightxml
expected_badxml.tap
expected_badxml.teamcity
expected_badxml.txt
expected_badxml.xml
expected_badxml.xunitxml
expected_benchlibcallgrind.csv
expected_benchlibcallgrind.lightxml
expected_benchlibcallgrind.tap Add some missing expected_*.tap files for the testlib selftest 2019-02-01 14:42:23 +00:00
expected_benchlibcallgrind.teamcity
expected_benchlibcallgrind.xml
expected_benchlibcallgrind.xunitxml
expected_benchlibcallgrind_0.txt
expected_benchlibcallgrind_1.txt
expected_benchlibcounting.csv
expected_benchlibcounting.lightxml
expected_benchlibcounting.tap
expected_benchlibcounting.teamcity
expected_benchlibcounting.txt
expected_benchlibcounting.xml
expected_benchlibcounting.xunitxml
expected_benchlibeventcounter.csv
expected_benchlibeventcounter.lightxml
expected_benchlibeventcounter.tap
expected_benchlibeventcounter.teamcity
expected_benchlibeventcounter.txt
expected_benchlibeventcounter.xml
expected_benchlibeventcounter.xunitxml
expected_benchliboptions.csv
expected_benchliboptions.lightxml
expected_benchliboptions.tap Add some missing expected_*.tap files for the testlib selftest 2019-02-01 14:42:23 +00:00
expected_benchliboptions.teamcity
expected_benchliboptions.txt
expected_benchliboptions.xml
expected_benchliboptions.xunitxml
expected_benchlibtickcounter.csv
expected_benchlibtickcounter.lightxml
expected_benchlibtickcounter.tap
expected_benchlibtickcounter.teamcity
expected_benchlibtickcounter.txt
expected_benchlibtickcounter.xml
expected_benchlibtickcounter.xunitxml
expected_benchlibwalltime.csv
expected_benchlibwalltime.lightxml
expected_benchlibwalltime.tap
expected_benchlibwalltime.teamcity
expected_benchlibwalltime.txt
expected_benchlibwalltime.xml
expected_benchlibwalltime.xunitxml
expected_blacklisted.lightxml testlib: Add BXPASS and BXFAIL 2019-01-29 12:18:15 +00:00
expected_blacklisted.tap Merge remote-tracking branch 'origin/5.12' into 5.13 2019-02-08 12:31:02 +01:00
expected_blacklisted.teamcity testlib: Add BXPASS and BXFAIL 2019-01-29 12:18:15 +00:00
expected_blacklisted.txt testlib: Add BXPASS and BXFAIL 2019-01-29 12:18:15 +00:00
expected_blacklisted.xml testlib: Add BXPASS and BXFAIL 2019-01-29 12:18:15 +00:00
expected_blacklisted.xunitxml testlib: Add BXPASS and BXFAIL 2019-01-29 12:18:15 +00:00
expected_cmptest.lightxml
expected_cmptest.tap
expected_cmptest.teamcity
expected_cmptest.txt
expected_cmptest.xml
expected_cmptest.xunitxml
expected_commandlinedata.lightxml
expected_commandlinedata.tap
expected_commandlinedata.teamcity
expected_commandlinedata.txt
expected_commandlinedata.xml
expected_commandlinedata.xunitxml
expected_counting.lightxml
expected_counting.tap
expected_counting.teamcity
expected_counting.txt
expected_counting.xml
expected_counting.xunitxml
expected_crashes_1.txt
expected_crashes_2.txt
expected_crashes_3.txt
expected_crashes_4.txt
expected_crashes_5.txt Merge remote-tracking branch 'origin/5.13' into dev 2019-02-20 09:51:12 +01:00
expected_datatable.lightxml
expected_datatable.tap
expected_datatable.teamcity
expected_datatable.txt
expected_datatable.xml
expected_datatable.xunitxml
expected_datetime.lightxml
expected_datetime.tap
expected_datetime.teamcity
expected_datetime.txt
expected_datetime.xml
expected_datetime.xunitxml
expected_differentexec.lightxml
expected_differentexec.tap Add some missing expected_*.tap files for the testlib selftest 2019-02-01 14:42:23 +00:00
expected_differentexec.teamcity
expected_differentexec.txt
expected_differentexec.xml
expected_differentexec.xunitxml
expected_exceptionthrow.lightxml
expected_exceptionthrow.tap
expected_exceptionthrow.teamcity
expected_exceptionthrow.txt
expected_exceptionthrow.xml
expected_exceptionthrow.xunitxml
expected_expectfail.lightxml
expected_expectfail.tap
expected_expectfail.teamcity
expected_expectfail.txt
expected_expectfail.xml
expected_expectfail.xunitxml
expected_failcleanup.lightxml
expected_failcleanup.tap
expected_failcleanup.teamcity
expected_failcleanup.txt
expected_failcleanup.xml
expected_failcleanup.xunitxml
expected_faildatatype.lightxml
expected_faildatatype.tap
expected_faildatatype.teamcity
expected_faildatatype.txt
expected_faildatatype.xml
expected_faildatatype.xunitxml
expected_failfetchtype.lightxml
expected_failfetchtype.tap
expected_failfetchtype.teamcity
expected_failfetchtype.txt
expected_failfetchtype.xml
expected_failfetchtype.xunitxml
expected_failinit.lightxml
expected_failinit.tap
expected_failinit.teamcity
expected_failinit.txt
expected_failinit.xml
expected_failinit.xunitxml
expected_failinitdata.lightxml
expected_failinitdata.tap
expected_failinitdata.teamcity
expected_failinitdata.txt
expected_failinitdata.xml
expected_failinitdata.xunitxml
expected_fetchbogus.lightxml
expected_fetchbogus.tap
expected_fetchbogus.teamcity
expected_fetchbogus.txt
expected_fetchbogus.xml
expected_fetchbogus.xunitxml
expected_findtestdata.lightxml
expected_findtestdata.tap
expected_findtestdata.teamcity
expected_findtestdata.txt
expected_findtestdata.xml
expected_findtestdata.xunitxml
expected_float.lightxml QtTestLib: handle float16 the same as double and float 2019-04-24 13:09:15 +00:00
expected_float.tap QtTestLib: handle float16 the same as double and float 2019-04-24 13:09:15 +00:00
expected_float.teamcity QtTestLib: handle float16 the same as double and float 2019-04-24 13:09:15 +00:00
expected_float.txt QtTestLib: handle float16 the same as double and float 2019-04-24 13:09:15 +00:00
expected_float.xml QtTestLib: handle float16 the same as double and float 2019-04-24 13:09:15 +00:00
expected_float.xunitxml QtTestLib: handle float16 the same as double and float 2019-04-24 13:09:15 +00:00
expected_globaldata.lightxml Fix the skip-check in TestMethods::invokeTest() 2019-03-29 14:00:03 +00:00
expected_globaldata.tap Fix the skip-check in TestMethods::invokeTest() 2019-03-29 14:00:03 +00:00
expected_globaldata.teamcity Fix the skip-check in TestMethods::invokeTest() 2019-03-29 14:00:03 +00:00
expected_globaldata.txt Fix the skip-check in TestMethods::invokeTest() 2019-03-29 14:00:03 +00:00
expected_globaldata.xml Fix the skip-check in TestMethods::invokeTest() 2019-03-29 14:00:03 +00:00
expected_globaldata.xunitxml Fix the skip-check in TestMethods::invokeTest() 2019-03-29 14:00:03 +00:00
expected_keyboard.lightxml
expected_keyboard.tap
expected_keyboard.teamcity
expected_keyboard.txt
expected_keyboard.xml
expected_keyboard.xunitxml
expected_longstring.lightxml
expected_longstring.tap
expected_longstring.teamcity
expected_longstring.txt
expected_longstring.xml
expected_longstring.xunitxml
expected_maxwarnings.lightxml
expected_maxwarnings.tap
expected_maxwarnings.teamcity
expected_maxwarnings.txt
expected_maxwarnings.xml
expected_maxwarnings.xunitxml
expected_multiexec.lightxml
expected_multiexec.tap Add some missing expected_*.tap files for the testlib selftest 2019-02-01 14:42:23 +00:00
expected_multiexec.teamcity
expected_multiexec.txt
expected_multiexec.xml
expected_multiexec.xunitxml
expected_pairdiagnostics.lightxml
expected_pairdiagnostics.tap
expected_pairdiagnostics.teamcity
expected_pairdiagnostics.txt
expected_pairdiagnostics.xml
expected_pairdiagnostics.xunitxml
expected_printdatatags.txt
expected_printdatatagswithglobaltags.txt
expected_qexecstringlist.lightxml
expected_qexecstringlist.tap Add some missing expected_*.tap files for the testlib selftest 2019-02-01 14:42:23 +00:00
expected_qexecstringlist.teamcity
expected_qexecstringlist.txt
expected_qexecstringlist.xml
expected_qexecstringlist.xunitxml
expected_signaldumper.lightxml Test QTest's signal dumper 2019-03-27 08:56:09 +00:00
expected_signaldumper.tap Test QTest's signal dumper 2019-03-27 08:56:09 +00:00
expected_signaldumper.teamcity Test QTest's signal dumper 2019-03-27 08:56:09 +00:00
expected_signaldumper.txt Test QTest's signal dumper 2019-03-27 08:56:09 +00:00
expected_signaldumper.xml Test QTest's signal dumper 2019-03-27 08:56:09 +00:00
expected_signaldumper.xunitxml Test QTest's signal dumper 2019-03-27 08:56:09 +00:00
expected_silent.lightxml
expected_silent.tap Dodge qFatal() so as to get coverage results despite it 2019-02-11 15:38:29 +00:00
expected_silent.teamcity
expected_silent.txt
expected_silent.xml
expected_silent.xunitxml
expected_singleskip.lightxml
expected_singleskip.tap
expected_singleskip.teamcity
expected_singleskip.txt
expected_singleskip.xml
expected_singleskip.xunitxml
expected_skip.lightxml
expected_skip.tap
expected_skip.teamcity
expected_skip.txt
expected_skip.xml
expected_skip.xunitxml
expected_skipcleanup.lightxml
expected_skipcleanup.tap
expected_skipcleanup.teamcity
expected_skipcleanup.txt
expected_skipcleanup.xml
expected_skipcleanup.xunitxml
expected_skipinit.lightxml
expected_skipinit.tap
expected_skipinit.teamcity
expected_skipinit.txt
expected_skipinit.xml
expected_skipinit.xunitxml
expected_skipinitdata.lightxml
expected_skipinitdata.tap
expected_skipinitdata.teamcity
expected_skipinitdata.txt
expected_skipinitdata.xml
expected_skipinitdata.xunitxml
expected_sleep.lightxml
expected_sleep.tap
expected_sleep.teamcity
expected_sleep.txt
expected_sleep.xml
expected_sleep.xunitxml
expected_strcmp.lightxml
expected_strcmp.tap
expected_strcmp.teamcity
expected_strcmp.txt
expected_strcmp.xml
expected_strcmp.xunitxml
expected_subtest.lightxml
expected_subtest.tap
expected_subtest.teamcity
expected_subtest.txt
expected_subtest.xml
expected_subtest.xunitxml
expected_testlib.lightxml
expected_testlib.tap
expected_testlib.teamcity
expected_testlib.txt
expected_testlib.xml
expected_testlib.xunitxml
expected_tuplediagnostics.lightxml
expected_tuplediagnostics.tap
expected_tuplediagnostics.teamcity
expected_tuplediagnostics.txt
expected_tuplediagnostics.xml
expected_tuplediagnostics.xunitxml
expected_verbose1.lightxml
expected_verbose1.tap
expected_verbose1.teamcity
expected_verbose1.txt
expected_verbose1.xml
expected_verbose1.xunitxml
expected_verbose2.lightxml
expected_verbose2.tap
expected_verbose2.teamcity
expected_verbose2.txt
expected_verbose2.xml
expected_verbose2.xunitxml
expected_verifyexceptionthrown.lightxml
expected_verifyexceptionthrown.tap
expected_verifyexceptionthrown.teamcity
expected_verifyexceptionthrown.txt
expected_verifyexceptionthrown.xml
expected_verifyexceptionthrown.xunitxml
expected_warnings.lightxml
expected_warnings.tap
expected_warnings.teamcity
expected_warnings.txt
expected_warnings.xml
expected_warnings.xunitxml
expected_watchdog.lightxml
expected_watchdog.tap
expected_watchdog.teamcity
expected_watchdog.txt
expected_watchdog.xml
expected_watchdog.xunitxml
expected_xunit.lightxml
expected_xunit.tap
expected_xunit.teamcity
expected_xunit.txt
expected_xunit.xml
expected_xunit.xunitxml
generate_expected_output.py Test QTest's signal dumper 2019-03-27 08:56:09 +00:00
selftests.pri Merge "Merge remote-tracking branch 'origin/5.13' into dev" into refs/staging/dev 2019-04-04 23:01:17 +00:00
selftests.pro
tst_selftests.cpp Merge "Merge remote-tracking branch 'origin/5.13' into dev" into refs/staging/dev 2019-04-04 23:01:17 +00:00