summaryrefslogtreecommitdiffstats
path: root/tests/auto/testlib/selftests
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2020-04-23 16:03:59 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2020-05-08 09:51:24 +0200
commite325bd68fd6bdcbcb0c4e7478cb6371b60d89905 (patch)
tree5533ab5f22ea44b4d22c483f635c8b5a89c73e67 /tests/auto/testlib/selftests
parentbd5fe6f385daebd0e9156c80508095e47f53a693 (diff)
Catch overflow in QDateTime::fromSecsSinceEpoch()
It's documented to be undefined if the number of seconds is outside the allowed range, but it doesn't hurt for that undefined behavior to happen to be that the result is invalid. Added a simple test. Change-Id: I20c3f680c7948b3904f213452272133be77e4d62 Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/testlib/selftests')
0 files changed, 0 insertions, 0 deletions