Jarek Kobus
bc3e30e7ec
Process test: Fix flakiness on linux / mac
...
Since it's not clear why the flakiness existed, leave a TODO note.
Change-Id: Ief1104870c008e056d5b87880b508fd66266bce4
Reviewed-by: Cristian Adam <cristian.adam@qt.io >
2024-01-04 20:44:38 +00:00
Jarek Kobus
a737ddd931
Process: Use GeneralProcessBlockingImpl for QProcess implementation
...
This should fix the Process::waitForReadyRead() when the data
appeared on stdErr channel and not on stdOut channel.
Amends ec722b9132
Change-Id: Ib9f361f4d1602487bdbbb735e55d0ad24fb5e4c3
Reviewed-by: hjk <hjk@qt.io >
Reviewed-by: <github-actions-qt-creator@cristianadam.eu >
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org >
2023-12-07 10:47:59 +00:00
Jarek Kobus
db4486e915
Process: Add a test for waitForReadyRead on error channel
...
Currently it works only in case of ProcessLaucher implementation.
The issue with QProcess implementation is that we need to
select the active channel in advance with QProcess::setReadChannel(),
what really doesn't make sense, since we can't predict on which
channel we will receive the data.
Currently we don't have setReadChannel() method inside Process API.
Change-Id: I23592e37f2ed5e3326bead445a9c6c6500d0e615
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org >
Reviewed-by: hjk <hjk@qt.io >
2023-12-07 10:47:50 +00:00
Jarek Kobus
2304dbb395
Process: Make multiRead test platform independent
...
Change-Id: Ife58e7b2a41ac35f8137acfc66ff827672f75de9
Reviewed-by: hjk <hjk@qt.io >
Reviewed-by: <github-actions-qt-creator@cristianadam.eu >
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org >
2023-12-07 10:47:45 +00:00
Jarek Kobus
1ea1ea7747
Process: Add a test for reading the errorChannel
...
Change-Id: I3b1d35c8ef2be91ddd1591a0fa2dafedc268f916
Reviewed-by: hjk <hjk@qt.io >
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org >
2023-12-07 10:47:39 +00:00
Jarek Kobus
a53dfaf623
Process: Switch the default implementation into QProcess
...
Task-number: QTCREATORBUG-28811
Change-Id: I5647b760998a80f59583b478a65de6d615e1ca55
Reviewed-by: hjk <hjk@qt.io >
2023-11-15 10:26:09 +00:00
Alessandro Portale
f96feadad0
Fix missing overrides and redundant virtual
...
Change-Id: Id2a247b6032602c2295d928067c2462d3f9b5221
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io >
2023-11-14 14:27:45 +00:00
Jarek Kobus
30ac04bffd
Process tests: Use QSignalSpy and QTRY_xxx instead of timeouts
...
Avoid arbitrary timeouts causing flakiness of tests.
Change-Id: I2b7634ab08ee29be06002eb22f01a5efdf78d407
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io >
2023-11-07 15:28:38 +00:00
Jarek Kobus
f915a18a9e
Process test: Adjust timeouts to minimize a chance for flakiness
...
The flakiness happened on mac inside recursiveBlockingProcess test.
Change-Id: I4d461fcdae1ecbf29f89bfdb4ad7ba017724f14b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io >
2023-11-03 14:12:52 +00:00
Jarek Kobus
922da1fbb3
Process test: Prevent empty loop from being optimized out
...
This should fix the macOS "Run tests" on GitHub Build Bot.
Change-Id: Iae185d47fa33c97c63480b10d5a25a1d4c13f532
Reviewed-by: Eike Ziller <eike.ziller@qt.io >
Reviewed-by: <github-actions-qt-creator@cristianadam.eu >
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org >
2023-08-30 07:35:25 +00:00
hjk
8f5703a7b9
Tests: Add a test to feed shells via stdin
...
Change-Id: I7e19537d0a3015aeb329849758cc92da17a67606
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org >
Reviewed-by: Christian Stenger <christian.stenger@qt.io >
Reviewed-by: <github-actions-qt-creator@cristianadam.eu >
2023-05-17 08:21:09 +00:00
Jarek Kobus
abce79939a
Tests: Rename tst_QtcProcess -> tst_Process
...
Follows 470c95c94b
Change-Id: Ie26b5677d28e645ab27aeebf5976b5507385716a
Reviewed-by: hjk <hjk@qt.io >
2023-05-05 12:35:50 +00:00