qt5base-lts/tests/auto/corelib
Thiago Macieira 9a0d47bcf1 tst_largefile: fix the mapOffsetOverflow case to match actual behavior
Unix mmap(2) system calls do allow for mapping beyond the end of the
file, though what happens after you try to dereference the pointers it
gives is unspecified. POSIX[1] says that implementations shouldn't allow
it:
 The system shall always zero-fill any partial page at the end of an
 object. Further, the system shall never write out any modified portions
 of the last page of an object which are beyond its end. References
 within the address range starting at pa and continuing for len bytes to
 whole pages following the end of an object shall result in delivery of
 a SIGBUS signal.

However, Linux allows this in read-write mode and extends the file
(depending on the filesystem).

Windows MapViewOfFile never allows mapping beyond the end.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/functions/mmap.html

Change-Id: Ie67d35dff21147e99ad9fffd14acc8d9a1a0c38d
Reviewed-by: Sami Nurmenniemi <sami.nurmenniemi@qt.io>
Reviewed-by: Teemu Holappa <teemu.holappa@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2017-03-31 06:31:25 +00:00
..
animation Blacklist tst_QPauseAnimation::multipleSequentialGroups on all macOS 2017-03-20 16:53:16 +00:00
codecs tst_utf8: Fix one of the overlong sequences to be what we meant 2017-03-01 12:27:17 +00:00
global Properly use the "process" feature 2017-02-27 15:44:46 +00:00
io tst_largefile: fix the mapOffsetOverflow case to match actual behavior 2017-03-31 06:31:25 +00:00
itemmodels Build examples and tests only if their requirements are met 2017-03-22 15:55:55 +00:00
json json encoder: Harmonize number serialization with ES6 2017-03-25 14:26:30 +00:00
kernel QMetaType & QVariant: "load" and "save" std::nullptr_t 2017-03-20 21:53:32 +00:00
mimetypes Build examples and tests only if their requirements are met 2017-03-22 15:55:55 +00:00
plugin Use QT_CONFIG(library) instead of QT_NO_LIBRARY 2017-03-06 11:27:20 +00:00
statemachine Merge "Merge remote-tracking branch 'origin/5.6' into dev" into refs/staging/dev 2016-01-26 11:27:37 +00:00
thread Build examples and tests only if their requirements are met 2017-03-22 15:55:55 +00:00
tools QChar: fix ambiguous comparisons with 0, '\0', ... for good 2017-03-17 20:28:32 +00:00
xml Build examples and tests only if their requirements are met 2017-03-22 15:55:55 +00:00
corelib.pro Add support for Apple tvOS 2016-05-17 16:11:23 +00:00