qt5base-lts/tests/auto/network/socket
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
..
platformsocketengine Return -1 as the API documents it for socket issues 2013-03-05 12:19:08 +01:00
qabstractsocket Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qhttpsocketengine Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qlocalsocket Fix incomplete override of QIODevice::open in QProcess and QLocalSocket 2013-07-20 00:22:03 +02:00
qsocks5socketengine Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qtcpserver Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qtcpsocket Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
qudpsocket Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
socket.pro Enable qlocalsocket auto test 2012-02-21 22:31:00 +01:00