qt5base-lts/tests/auto/corelib/global
Edward Welbourne 7d74404325 Replace a misguided test with a valid one
The code had min and max of an integral type and tested min + min / 2,
which naturally overflowed, provoking a compiler warning.  The test
was meant to be testing min - min / 2; but min is even, so this is
just min / 2; and doubling that won't overflow (which is what the test
is about).  As it happens, min + min / 2 is in fact max - max / 2,
which *would* be a good value to test, since max is odd.  So add a
test for that and remove the broken test.

Change-Id: Iec34acbf0d5d7993d41ff844875dc10480b8eb1f
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2019-03-27 13:43:21 +00:00
..
q_func_info Updated license headers 2016-01-21 18:55:18 +00:00
qflags Fix odd test in tst_qflags 2018-10-17 09:15:22 +00:00
qfloat16 Merge remote-tracking branch 'origin/5.10' into dev 2018-01-02 09:58:44 +01:00
qgetputenv QByteArray: toInt() and toDouble() ignore surrounding whitespaces 2018-07-07 19:58:18 +00:00
qglobal Simplify the Q_FOREACH macro when using C++17 2018-10-31 09:07:49 +00:00
qglobalstatic tests: Unify license to GPL-EXCEPT 2017-04-03 07:18:46 +00:00
qhooks tst_qhooks: test that it's possible to chain multiple hooks together 2016-11-18 15:22:32 +00:00
qlogging Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
qnumeric Replace a misguided test with a valid one 2019-03-27 13:43:21 +00:00
qrand Updated license headers 2016-01-21 18:55:18 +00:00
qrandomgenerator QRandomGenerator: remove unnecessary cast to float in RandomValueFP 2018-07-29 19:09:16 +00:00
qtendian qendian: Fix float conversions 2018-10-28 22:26:56 +00:00
global.pro Long live QRandomGenerator 2017-06-12 06:14:34 +00:00