summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/kernel/qclipboard/test
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2023-07-10 09:47:22 -0700
committerThiago Macieira <thiago.macieira@intel.com>2023-07-11 13:44:29 -0700
commit93b87b5cbfae3c50e539f6ec37bd7b95e89e455e (patch)
tree3e4486f46ce2e590ecc72bd1fa86103f3872ab7f /tests/auto/gui/kernel/qclipboard/test
parent5bcacdbd1aa237cb3d39ffafbe378688a00ea502 (diff)
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>
Diffstat (limited to 'tests/auto/gui/kernel/qclipboard/test')
0 files changed, 0 insertions, 0 deletions