qt5base-lts/tests/auto
Edward Welbourne cff39f1818 tst_QTimeZone: improve readability of code and failure reports
When QCOMPARE(,) reports two 12-digit numbers, it's not always
immediately obvious what the difference is (much less what 1/3600000
of it is); nor is it obvious that (or why) a given 12-digit number is
in fact correct.  In contrast, our eyes can make sense of a
QDateTime's reported value quite well, enabling us to see what's
different; and it's possible to at least confirm the plausibility of
2-or-3 am on a spring or autumn day at a plausible transition (or even
to confirm it exactly by consulting suitable web-sites).  Also
document the actual transition happening in each case (since I *did*
consult a suitable web-site).  So prefer to QCOMPARE(,) two QDateTime
values instead of two 12-digit qint64s.

Where a that would be unsuitable, at least compare the difference to
zero, to make the error easier to understand (except when one of the
twelve-digit numbers consists entirely of 9s; that, for once, actually
is easy to see).

Write various multiples of 3600 as the relevant intelligible whole
number times 3600, rather than premultiplying, to make it obvious to
reders what's going on.

None of this changes what is actually tested.

Change-Id: I488e751283a55d4623c93612af13ad631144900d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2017-07-25 14:09:03 +00:00
..
android Updated license headers 2016-01-21 18:55:18 +00:00
bic/data Binary compatibility files for QtBase (5.8.0) 2017-02-14 12:42:20 +00:00
cmake tests: Unify license to GPL-EXCEPT 2017-04-03 07:18:46 +00:00
compilerwarnings/data Updated license headers 2016-01-21 18:55:18 +00:00
concurrent Blacklist qFutureAssignmentLeak on OpenSUSE CI 2017-06-22 11:36:09 +00:00
corelib tst_QTimeZone: improve readability of code and failure reports 2017-07-25 14:09:03 +00:00
dbus Skip the dbus abstract adaptor test on OpenSuSE 42.1 2017-07-07 09:40:14 +00:00
gui tst_QWindow: Wait for platform to ack window states before continuing 2017-07-19 23:06:21 +00:00
guiapplauncher Fix path to examples part of tst_GuiAppLauncher 2015-02-13 07:28:15 +00:00
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network tst_QSslSocket::ephemeralServerKey - fix for OpenSSL 1.1 2017-07-25 13:29:32 +00:00
opengl tst_QGL::graphicsViewClipping: Wait for viewport's window handle 2017-07-17 14:11:06 +00:00
other macOS: Blacklist tst_MacNativeEvents::testKeyPressOnToplevel and friends 2017-07-19 23:03:50 +00:00
printsupport tst_QPrinter: Run in temporary directory 2017-07-03 06:49:10 +00:00
shared Remove workaround for potentially unavailable pasteboard in macOS 2017-03-07 01:04:46 +00:00
sql QSqlField: Add a means to see what the tablename is for a given field 2017-07-12 09:01:50 +00:00
testlib generate_expected_output.py: more refinements to filtering of noise 2017-06-13 11:27:38 +00:00
tools Merge remote-tracking branch 'origin/5.9' into dev 2017-07-19 09:47:29 +02:00
widgets Fix tst_QAbstractItemView::task200665_itemEntered 2017-07-25 10:54:40 +00:00
xml Merge remote-tracking branch 'origin/5.7' into 5.8 2016-11-01 06:02:55 +01:00
auto.pro Remove remains of wince in .pro files 2017-07-03 05:32:51 +00:00
network-settings.h Merge remote-tracking branch 'origin/5.6' into 5.7 2016-05-06 15:36:44 +02:00