qt6-bb10/tests/auto/corelib/io/qprocess
Thiago Macieira a3f2ddc230 tst_QProcess::startStopStartStopBuffers: depend less on OS configuration
The comment in this function made it clear that it really depended on
the size of the pipe buffer in the OS. I don't see a way to make a pipe
default to a different size on Linux -- it always defaults to
PIPE_DEF_BUFFERS (16) and that value is only increased as a result of
fcntl(F_SETPIPE_SZ), which we don't do. But we can be defensive and
simply write until the OS can't take any more data.

Drive-by update the comment on Windows to be clear that bytesToWrite()
does work, but only while the child process is still running.

Pick-to: 6.6
Task-number: QTBUG-80953
Change-Id: I9d43e5b91eb142d6945cfffd17866d22a4127e5e
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
2023-10-18 12:40:54 -07:00
..
fileWriterProcess tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
test QProcess: add testUnixProcessParameters as a dep. for tst_qprocess 2023-06-18 20:32:30 +03:00
testBatFiles
testDetached tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
testExitCodes tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testForwarding QThread: add sleep(std::chrono::nanoseconds) overload 2023-03-13 23:26:28 +02:00
testForwardingHelper tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testGuiProcess tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
testProcessCrash tst_QProcess: move the crasher code to a header 2023-06-07 17:09:52 -07:00
testProcessDeadWhileReading tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testProcessEOF tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testProcessEcho tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testProcessEcho2 tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testProcessEcho3 tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testProcessEchoGui tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testProcessEnvironment tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testProcessHang tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testProcessNormal tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testProcessOutput tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testProcessSpacesArgs tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testSetNamedPipeHandleState tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testSetWorkingDirectory tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
testSoftExit tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testSpaceInName tst_QProcess: don't link non-Qt helpers to QtCore 2023-04-25 18:53:30 -07:00
testUnixProcessParameters QProcess/Unix: add a simple way to reset the UID and GID for the child 2023-07-08 15:03:23 -07:00
.gitignore
BLACKLIST Update for failures only on dev branch. Use general platform names 2019-08-19 18:22:11 +02:00
CMakeLists.txt CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
crasher.h tst_QProcess: move the crasher code to a header 2023-06-07 17:09:52 -07:00
tst_qprocess.cpp tst_QProcess::startStopStartStopBuffers: depend less on OS configuration 2023-10-18 12:40:54 -07:00