qt5base-lts/tests/auto/corelib
Marc Mutz 1ce6e432b6 QVersionNumber: correctly fail for numerically very large segments
The result of qstrtoull() was unconditionally truncated to an int,
resulting in wrong values being appended to the segments vector
when the numerical segment value was above INT_MAX.

Prevent this by first checking the return value of qstrtoull
as a qulonglong for values larger than INT_MAX and stopping
processing in that case. That means that segments that
numerically overflow an int are now considered part of the
suffix.

Also added tests for the case where a segment value is larger
than ULLONG_MAX. That was already working correctly.

Change-Id: Ia4b89021dcfe6bfae27c8d89bb678ec5e0e3b847
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2014-09-23 20:42:01 +02:00
..
animation Updated corelib's unit tests to use QSignalSpy's functor constructor 2014-05-08 04:22:54 +02:00
codecs Merge remote-tracking branch 'origin/release' into stable 2014-05-14 12:37:34 +02:00
global Add unit tests for cleaning up nested functions 2014-09-23 17:44:22 +02:00
io QLockFile: on Windows, retry deleting the lock file if it is being read. 2014-09-11 00:17:33 +02:00
itemmodels QAbstractProxyModel: Forward drop-related API. 2014-06-25 16:31:03 +02:00
json Fix MSVC source code encoding warnings in tst_qtjson. 2014-09-23 17:04:15 +02:00
kernel QVariant::compare shouldn't return match when QVariant::cmp does not 2014-09-11 23:05:35 +02:00
mimetypes test: Don't build qmimedatabase-cache for QNX 2014-01-16 16:11:04 +01:00
plugin Don't store QLibraryPrivate with empty file names in the global store 2014-07-23 17:50:31 +02:00
statemachine Merge remote-tracking branch 'origin/5.3' into 5.4 2014-08-12 13:05:02 +02:00
thread QFutureInterface: allow to work with a QThreadPool != globalInstance() 2014-08-05 18:04:56 +02:00
tools QVersionNumber: correctly fail for numerically very large segments 2014-09-23 20:42:01 +02:00
xml Include the duplicated attribute name in the error message 2014-05-06 01:20:19 +02:00
corelib.pro iOS: Enable building of basic tests 2014-01-22 12:35:17 +01:00