qt5base-lts/tests/auto/corelib/kernel
Jan-Marek Glogowski a2f78ea0a1 Fix tst_QEventLoop::processEventsExcludeSocket test
The testcase always returns the expected result, independently of the
QEventLoop::ExcludeSocketNotifiers flag to processEvents.

In Qt4 the same test uses an intermediate QEventLoop and already runs
it before the QEventLoop::ExcludeSocketNotifiers:

  QEventLoop loop;
  // allow the TCP/IP stack time to loopback the data,
  //  so our socket is ready to read
  QTimer::singleShot(200, &loop, SLOT(quit()));
  loop.exec(QEventLoop::ExcludeSocketNotifiers);

This fixes and improves the test by connecting, processing and
checking the bytesWritten signal for the pending connection socket.

Change-Id: I1b1d2b7b83910c87ba3fe48e29ac9fd585ac62ad
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2014-11-21 18:51:17 +01:00
..
qcoreapplication Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qeventdispatcher Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qeventloop Fix tst_QEventLoop::processEventsExcludeSocket test 2014-11-21 18:51:17 +01:00
qmath Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qmetamethod Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qmetaobject Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qmetaobjectbuilder Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qmetaproperty Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qmetatype tst_QMetaType: fix memleaks 2014-10-19 13:17:53 +02:00
qmimedata tst_QMimeData: test doesn't require QGuiApplication 2014-10-19 13:17:46 +02:00
qobject Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qpointer tst_QPointer: fix memleak 2014-10-19 13:18:23 +02:00
qsharedmemory Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qsignalblocker Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qsignalmapper Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qsocketnotifier Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qsystemsemaphore Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qtimer tst_QTimer::singleShotToFunctors: Allocate static event loop on heap. 2014-11-11 06:28:11 +01:00
qtranslator Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qvariant Add C++11 if available for QVariant autotest 2014-11-13 15:21:07 +01:00
qwineventnotifier Update license headers and add new license files 2014-09-24 12:26:19 +02:00
kernel.pro Re-add missing test to kernel.pro 2014-04-02 03:07:12 +02:00