qt6-bb10/tests/auto/corelib
Thiago Macieira ee068f2ec5 QProcess/Unix: don't close the childStartedPipe too soon
We were accidentally closing it along with all the other file
descriptors if the CloseFileDescriptors flag was active. That meant we
were unable to report start problems back to the parent process.

So instead of closing everything immediately, we simply mark everything
as FD_CLOEXEC so they'll be closed by execve()'s success. Because we're
using CLOSE_RANGE_CLOEXEC now to detect the system call, we don't need
the configure-time test.

[ChangeLog][QtCore][QProcess] Fixed a bug that caused QProcess not to
report start failures if the UnixProcessFlag::CloseFileDescriptors flag
was active.

Change-Id: I4d81d763281354e886d9fffd56ef6ab8b6115715
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
(cherry picked from commit 3d007ff2e9caf328f92d65f71a94fd869552b1b6)
(cherry picked from commit 01010851cb61f5d7964ba2317defb67cdfcb72f5)
2025-02-22 13:20:54 +00:00
..
animation Change license for tests files 2024-02-04 09:56:42 +01:00
global tst_QGetPutEnv: use a lambda instead of a macro 2025-02-15 09:49:47 +00:00
io QProcess/Unix: don't close the childStartedPipe too soon 2025-02-22 13:20:54 +00:00
ipc Add REUSE.toml files 2024-11-07 08:38:49 +01:00
itemmodels QConcatenateTablesProxyModel: react to row and column moves 2024-09-13 17:44:05 +00:00
kernel tst_Q*Application: add tests for unusual qApp creations and exits 2025-01-20 13:31:34 -08:00
mimetypes Add REUSE.toml files 2024-11-07 08:38:49 +01:00
platform Move UUID definitions out of Qt namespace 2025-02-08 08:08:51 +00:00
plugin tst_QUuid: fix -Wreturn-type in make_minimal(QUuid::Version) 2025-01-25 14:21:25 +00:00
serialization Modernise tst_QTextStream::manipulators() and add two new data rows 2025-02-10 08:43:11 +00:00
text QLocale: fix UB (signed overflow) in formattedDataSize() 2025-02-21 21:24:30 +00:00
thread tst_qfuture: silence all continuation overwrite warnings 2025-02-12 12:44:15 +00:00
time Update CLDR to v46 2025-01-14 11:15:42 +01:00
tools tst_QCryptographicHash: remove remnants of BigData split 2025-02-21 21:24:30 +00:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00