tst_QProcess: increase wait time and remove ill-advised QCOMPARE
The QCOMPARE made dead code of a more verbose QVERIFY2 below Change-Id: I26b8286f61534f88b649fffd166b67d8603280a7 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
This commit is contained in:
parent
ba561efa9d
commit
f95d6bb09d
@ -1145,9 +1145,8 @@ void tst_QProcess::forwardedChannels()
|
||||
QVERIFY(process.waitForStarted(5000));
|
||||
QCOMPARE(process.write("input"), 5);
|
||||
process.closeWriteChannel();
|
||||
QVERIFY(process.waitForFinished(5000));
|
||||
QVERIFY(process.waitForFinished(40000)); // testForwarding has a 30s wait
|
||||
QCOMPARE(process.exitStatus(), QProcess::NormalExit);
|
||||
QCOMPARE(process.exitCode(), 0);
|
||||
const char *err;
|
||||
switch (process.exitCode()) {
|
||||
case 0: err = "ok"; break;
|
||||
|
Loading…
Reference in New Issue
Block a user