qt6-bb10/tests/auto/corelib/ipc
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
..
qnativeipckey IPC: Move the legacy key to the QNativeIpcKey 2023-09-17 18:10:18 -07:00
qsharedmemory QSharedMemory: fix attach() -> create() for legacy SystemV mode 2023-11-07 15:43:05 +01:00
qsystemsemaphore CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
CMakeLists.txt IPC: add native key support to QSharedMemory 2023-01-22 13:02:04 -03:00
ipctestcommon.h IPC: add support for multiple backends to QSystemSemaphore 2023-01-22 13:02:10 -03:00