qt5base-lts/tests/auto/corelib/kernel
Thiago Macieira 93b87b5cbf QSocketNotifier: firm up the ordering in unexpectedDisconnection()
The test was relying on the fact that, having written 1 byte to both
writeEnd1 and writeEnd2 (and ensured those bytes were written with
waitForBytesWritten()), both read ends would be activated by the next
event loop. It turns out that this was an unreliable assumption, because
the processing of that 1 byte on the second socket may not have happened
yet. So firm up by waiting that both read ends are readable before even
creating the QSocketNotifiers we will read on.

I'm not entirely sure what this test is attempting to test. Its
documentation says it's testing a QAbstractSocket condition, but the
read ends aren't QAbstractSocket (this test should have been in
tst_QAbstractSocket if so). It may be testing the condition that caused
that QAbstractSocket behavior, but that wouldn't be a good test.

Drive-by remove redundant flush()-after-waitForBytesWritten() calls.

Fixes: QTBUG-115154
Pick-to: 6.5 6.6
Change-Id: I61b74deaf2514644a24efffd17708f8071f707ed
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-07-11 13:44:29 -07:00
..
qapplicationstatic CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qcoreapplication CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qdeadlinetimer CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qelapsedtimer CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qeventdispatcher CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qeventloop CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qjnienvironment CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qjniobject CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qjnitypes CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qmath CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qmetacontainer CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qmetaenum CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qmetamethod CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qmetaobject CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qmetaobjectbuilder CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qmetaproperty CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qmetatype CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qmimedata CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qobject CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qpermission CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qpointer CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qproperty CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qsignalblocker CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qsignalmapper CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qsocketnotifier QSocketNotifier: firm up the ordering in unexpectedDisconnection() 2023-07-11 13:44:29 -07:00
qtimer CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qtranslator CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qvariant CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qwineventnotifier CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qwinregistrykey CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00