# HG changeset patch # User Andre Heinecke # Date 1395419598 0 # Node ID 5ed770c41a73b58560f0329cf66ea5c7b73e9ea6 # Parent 447a7abee6c79ce34a003b22d609b45130f5fbd9 Change garbage input to invalid input. Fix InvalidInstructions test. InvalidInstructions test now fails as instruction validation is not yet implemented diff -r 447a7abee6c7 -r 5ed770c41a73 ui/tests/cinstprocesstest.cpp --- a/ui/tests/cinstprocesstest.cpp Fri Mar 21 17:13:24 2014 +0100 +++ b/ui/tests/cinstprocesstest.cpp Fri Mar 21 16:33:18 2014 +0000 @@ -77,11 +77,9 @@ } retval = installerProcess->write(garbage, 1030); bytesWritten += retval; - } while (retval != -1 && bytesWritten < 100 *1024 *1024 ); + } while (retval != -1 && bytesWritten < 15 *1024 *1024 ); - QVERIFY (bytesWritten < 100 *1024 *1024); - - finishVerify(installerProcess, ERR_TOO_MUCH_INPUT); + finishVerify(installerProcess, ERR_INVALID_INPUT); } void CinstProcessTest::testNoInput() { @@ -109,12 +107,12 @@ QProcess* installerProcess = startCinstProcess(); QVERIFY(installerProcess->state() == QProcess::Running); - /* foobar as instruction */ + /* I: as instruction */ installerProcess->write("-----BEGIN CERTIFICATE LIST-----\r\n"); installerProcess->write(validList.rawData().toLatin1()); installerProcess->write("-----END CERTIFICATE LIST-----\r\n"); - installerProcess->write("foobar"); + installerProcess->write("I:ABCDEF"); finishVerify(installerProcess, ERR_INVALID_INSTRUCTIONS); }