qt5base-lts/tests/auto
Alex Trotsenko e8733ffc51 QWindowsPipeReader: fix waiting on inactive pipe
To read data from a named pipe, QWindowsPipeReader uses the ReadFileEx()
function which runs asynchronously. When reading is completed and the
thread is in an alertable wait state, the notified() callback is called
by the system, reporting a completion status of that operation. Then the
callback queues a readyRead signal and starts a new sequence. The latter
is skipped if the pipe is broken or the read buffer is full.

Thus, if an application does not run the event loop, the next call to
QWindowsPipeReader::waitForReadyRead() should emit the queued signal
and report true to the caller even if no new read operation was started.

Change-Id: I37102dbb1c00191d93365bfc2e94e743d9f3962a
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
2018-04-12 18:08:29 +00:00
..
android
bic/data Add binary compatibility files for QtBase for 5.10 2018-01-04 16:26:32 +00:00
cmake Remove CMake code for CMake < 3.1 2018-03-24 22:31:18 +00:00
compilerwarnings/data
concurrent Fix of flaky qFutureAssignmentLeak test 2018-02-15 16:24:38 +00:00
corelib tst_QEventLoop: Remove unconditional qWait() 2018-04-10 08:32:21 +00:00
dbus tests/auto/dbus: Avoid unconditional qWait()s 2018-04-12 05:49:07 +00:00
gui tests/auto/gui/kernel: Use QTRY_VERIFY instead of manual wait loops 2018-04-11 06:11:27 +00:00
guiapplauncher
installed_cmake
network QWindowsPipeReader: fix waiting on inactive pipe 2018-04-12 18:08:29 +00:00
opengl tst_QGL: Use qWaitForWindowExposed() 2018-04-11 06:05:46 +00:00
other Fix license header for tst_toolingsupport.cpp 2018-04-09 06:37:01 +00:00
printsupport tst_QPrinter: Use qWaitForWindowActive() to wait for dialog 2018-04-09 05:59:39 +00:00
shared Remove workaround for potentially unavailable pasteboard in macOS 2017-03-07 01:04:46 +00:00
sql oci: Use OCIBindByPos2 to accommodate data longer than USHRT_MAX 2018-04-06 12:44:37 +00:00
testlib Stabilize tst_QSignalSpy::waitFunctionPointer_signalEmittedTooLate() 2018-03-17 12:10:05 +00:00
tools qmake: make VFS aware of exact vs. cumulative evaluation 2018-03-29 18:15:10 +00:00
widgets Blacklist tst_QItemDelegate::comboBox on openSUSE 2018-04-12 12:48:12 +00:00
xml Don't indefinitely wait for data if it was able to read some data 2018-01-24 05:54:31 +00:00
auto.pro tests/auto/auto.pro: Use correct null device for DBUS check 2017-12-01 09:53:07 +00:00
network-settings.h