Stabilize tst_QProcess::softExitInSlots()
After the commit 7ff655360f, case 4 in SoftExitProcess class relates
to a channelReadyRead() signal instead of stateChanged(). Accordingly,
terminateSlot() is fixed to handle a special case when process is not
running.
Change-Id: Ie0d3284f5d264037d00e4ad6d927c0766be562b0
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
bb10
parent
5af12dae41
commit
599dbc5e43
|
|
@ -1012,8 +1012,8 @@ public:
|
|||
public slots:
|
||||
void terminateSlot()
|
||||
{
|
||||
writePendingData(); // In cases 3 and 4 we haven't written the data yet.
|
||||
if (killing || (n == 4 && state() != Running)) {
|
||||
writePendingData(); // In cases 3 and 5 we haven't written the data yet.
|
||||
if (killing || (n == 5 && state() != Running)) {
|
||||
// Don't try to kill the process before it is running - that can
|
||||
// be hazardous, as the actual child process might not be running
|
||||
// yet. Also, don't kill it "recursively".
|
||||
|
|
|
|||
Loading…
Reference in New Issue