qt6-bb10/tests/auto/corelib/io
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
..
largefile Limit size of large files test for VxWorks 2024-05-16 14:04:41 +02:00
qabstractfileengine QDirListing: add flags to handle entries filtering 2024-06-27 01:31:40 +00:00
qbuffer Change license for tests files 2024-02-04 09:56:42 +01:00
qdataurl Change license for tests files 2024-02-04 09:56:42 +01:00
qdebug tst_QDebug: extend test with pair<references> 2024-10-28 14:30:11 +00:00
qdir QDir: refactor PathNormalization enum 2025-02-12 07:54:54 -08:00
qdiriterator QAbstractFileEngine: remove beginEntryList(QDir::Filters) 2024-10-19 10:09:37 +00:00
qdirlisting QDirListing: make end() return a sentinel 2024-09-03 18:06:32 +00:00
qfile tests: Explicitly check for pathconf(_PC_CASE_SENSITIVE) == 1 2024-09-23 19:36:53 +00:00
qfileinfo Fix warnings in tests from QFile::open being [[nodiscard]] 2025-02-11 12:43:48 +00:00
qfileselector Handle VxWorks in QFileSelector 2024-06-19 14:02:58 +00:00
qfilesystementry Change license for tests files 2024-02-04 09:56:42 +01:00
qfilesystemmetadata Change license for tests files 2024-02-04 09:56:42 +01:00
qfilesystemwatcher Fix tst_QFileSysteMWatcher::basicTest on VxWorks 2024-05-15 18:22:39 +02:00
qiodevice Tests: check the output of QFile::open 2024-03-27 04:24:11 +01:00
qipaddress Change license for tests files 2024-02-04 09:56:42 +01:00
qlockfile Change license for tests files 2024-02-04 09:56:42 +01:00
qloggingcategory Change license for tests files 2024-02-04 09:56:42 +01:00
qloggingregistry Change license for tests files 2024-02-04 09:56:42 +01:00
qnodebug Change license for tests files 2024-02-04 09:56:42 +01:00
qprocess QProcess/Unix: don't close the childStartedPipe too soon 2025-02-22 13:20:54 +00:00
qprocess-noapplication Change license for tests files 2024-02-04 09:56:42 +01:00
qprocessenvironment Skip tst_QProcessEnvironment::systemEnvironment on VxWorks 2024-05-28 15:22:20 +02:00
qresourceengine Add copyright and licensing to .cpp and .h files missing them 2024-05-28 09:47:01 +02:00
qsavefile tst_QSaveFile: QVERIFY the commit() return value in symlink() test 2025-01-13 13:50:28 +00:00
qsettings tests: Explicitly check for pathconf(_PC_CASE_SENSITIVE) == 1 2024-09-23 19:36:53 +00:00
qstandardpaths wasm: Enable qstandardpaths test 2024-05-06 16:01:28 +02:00
qstorageinfo tst_QStorageInfo: port from qvsnprintf to std::vsnprintf() 2024-07-22 21:00:12 +00:00
qtemporarydir QTemporaryFile: fix incorrect info about duplicate placeholders 2025-01-13 13:50:00 +00:00
qtemporaryfile QTemporaryFile: fix incorrect info about duplicate placeholders 2025-01-13 13:50:00 +00:00
qurl QUrl: avoid going up from the drive path on Windows file URLs 2025-02-12 07:54:55 -08:00
qurlinternal Change license for tests files 2024-02-04 09:56:42 +01:00
qurlquery QTest: rip out qxp::function_ref from compare_helper() 2024-04-26 18:19:36 +02:00
qurluts46 Update UCD to Unicode 16.0.0 2025-02-17 14:39:31 +01:00
qzip Change license for tests files 2024-02-04 09:56:42 +01:00
CMakeLists.txt tst_QSettings: port to QTEST_THROW_ON_FAIL 2024-06-27 06:06:02 +00:00