qt6-bb10/src
Ivan Solovev fb1dcbfcba QSharedMemory: fix attach() -> create() for legacy SystemV mode
The attach() -> create() sequence was not covered by unit-tests in
qtbase, but this approach is used inside QSharedImageLoader.

It turns out that 02c42b26e1 broke this
usecase for legacy mode, and the create() triggered an assertion
in QSharedMemorySystemV::updateNativeKeyFile(). Fix it by clearing
the nativeKeyFile if ftok() call in QSharedMemorySystemV::handle()
fails().

Add unit-tests for the attach() -> create() scenario.
These tests revealed that this scenario fails also in non-legacy mode
for SystemV, so add QEXPECT_FAIL for these cases for now. This will
be addressed in a separate patch.

Pick-to: 6.6
Change-Id: If133fa56c82eba902374dc48d2757046b3d40baf
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-11-07 15:43:05 +01:00
..
3rdparty Update Harfbuzz to version 8.2.2 2023-11-01 15:00:13 +01:00
android Android: remove a11y methods from QtNative, call a11y delegate direct 2023-11-06 19:59:51 +02:00
assets Add XDG theme file for example icons 2023-06-26 17:32:10 +00:00
concurrent Doc: Fix warnings and linking issues 2023-10-09 17:24:07 +00:00
corelib QSharedMemory: fix attach() -> create() for legacy SystemV mode 2023-11-07 15:43:05 +01:00
dbus QtDBus: Fix unity build on Windows 2023-11-01 21:05:38 +01:00
entrypoint src: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-10 23:36:51 +01:00
gui Fix build with -no-feature-shortcut 2023-11-07 09:59:06 +09:00
network QNonContiguousByteDeviceThreadForwardImpl: reset m_atEnd during reset() 2023-11-06 18:23:19 +01:00
opengl Include what you need: <QPointer> 2023-10-12 21:38:54 +02:00
openglwidgets QOpenGLWidget: Call glClear in the default paintGL implementation 2023-09-04 11:46:29 +02:00
platformsupport Include what you need: <QPointer> 2023-10-12 21:38:54 +02:00
plugins Remove forward declared QHash 2023-11-06 22:44:35 +01:00
printsupport print: Use transient parent for native print dialog if provided 2023-10-26 21:04:51 +03:00
sql Highlight some examples for 'Data Processing & IO' category 2023-10-31 19:35:59 +02:00
testlib Make checkBlackLists() return bool 2023-11-03 16:31:57 +03:00
tools windeployqt: improve MSVC runtime detection 2023-11-02 16:49:40 +00:00
widgets Restore WindowState when changing SurfaceType 2023-11-06 20:50:44 +01:00
xml Doc: Fix warnings and linking issues 2023-10-09 17:24:07 +00:00
CMakeLists.txt Add Qt icon library for examples 2023-04-22 18:14:38 +03:00