qt5base-lts/tests/auto/corelib/io/qprocess
Thiago Macieira 674e79416f Fix incomplete override of QIODevice::open in QProcess and QLocalSocket
The rule for a new override is that it must still work if the old
implementation is called. The catch is that any class that derives from
QProcess and isn't recompiled will still have QIODevice::open in its
virtual table. That is equivalent to overriding open() and calling
QIODevice::open() (like the tests).

In Qt 5.0, QProcess::start() called QIODevice::open directly, not the
virtual open(), so there's no expectation that a user-overridden open()
be called. With that in mind, simply fix QProcess::start to not call the
virtual open at all.

Similarly with QLocalSocket, the calls to open were always non-virtual.

Task-number: QTBUG-32284
Change-Id: I88925f0ba08bc23c849658b54582744997e69a4c
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
2013-07-20 00:22:03 +02:00
..
fileWriterProcess Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
test fix error handling bug in QWindowsPipeReader 2012-11-02 12:16:49 +01:00
testBatFiles Moving relevant tests to corelib/io 2011-08-31 10:08:38 +02:00
testDetached Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
testExitCodes Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
testForwarding qprocess autotests don't need QtGui 2013-02-09 18:44:41 +01:00
testGuiProcess Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
testProcessCrash Make the null pointer dereference a volatile one 2013-01-29 01:47:01 +01:00
testProcessDeadWhileReading Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
testProcessEcho Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
testProcessEcho2 Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
testProcessEcho3 Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
testProcessEchoGui Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
testProcessEnvironment Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
testProcessEOF Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
testProcessNormal qprocess autotests don't need QtGui 2013-02-09 18:44:41 +01:00
testProcessOutput qprocess autotests don't need QtGui 2013-02-09 18:44:41 +01:00
testProcessSpacesArgs qprocess autotests don't need QtGui 2013-02-09 18:44:41 +01:00
testSetWorkingDirectory qprocess autotests don't need QtGui 2013-02-09 18:44:41 +01:00
testSoftExit Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
testSpaceInName qprocess autotests don't need QtGui 2013-02-09 18:44:41 +01:00
.gitignore test: Moving tst_QProcess::echoTest_performance() 2012-10-19 02:43:05 +02:00
qprocess.pri add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00
qprocess.pro Changed qprocess unittest to work from installation directory. 2012-01-16 01:55:18 +01:00
tst_qprocess.cpp Fix incomplete override of QIODevice::open in QProcess and QLocalSocket 2013-07-20 00:22:03 +02:00