qt5base-lts/tests/auto
Daniel Teske ed0c0070f9 Introduce qt_subtract_from_timeout to reduce code duplication.
The same qt_timeout_value function was copied 5 times in qtbase's code,
so provide a common implementation in QIoDevice that can be used by
everyone.

This commit also corrects the remaining time calculation in
QProcess::waitForBytesWritten and QProcess::waitForFinished by using
this new function.

For QProcess::waitForFinished, if the process started within almost exactly
the timeout time passed to waitForFinished, msecs - stopWatch.elapsed() would
be -1, which is a special value.

Change-Id: I7b76ee6bae695eafdd02e3db03e2ff1e23a7f40c
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2015-03-09 17:11:54 +00:00
..
android Android: don't report xfail 2015-01-19 15:48:50 +01:00
bic/data bic: Add 5.{1,2,3,4}.0 bic data for linux-gcc-amd64 2015-02-14 06:54:20 +00:00
cmake Update license headers and add new license files 2014-09-24 12:26:19 +02:00
compilerwarnings/data Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
concurrent Update license headers and add new license files 2014-09-24 12:26:19 +02:00
corelib Autotest: fix existence check after c8c68ec. 2015-02-24 14:06:45 +00:00
dbus Fix compilation with older MSVC: use qIsNan instead of isnan 2015-01-15 08:40:14 +01:00
gui Fix another crash when converting format of buffer-created QImage 2015-03-04 10:53:00 +00:00
guiapplauncher Fix path to examples part of tst_GuiAppLauncher 2015-02-13 07:28:15 +00:00
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network tst_QDnsLookup: Update to match the new zone for test.qt-project.org 2015-03-05 21:34:52 +00:00
opengl Change bugreports.qt-project.org -> bugreports.qt.io 2014-12-18 09:46:09 +01:00
other Introduce qt_subtract_from_timeout to reduce code duplication. 2015-03-09 17:11:54 +00:00
printsupport Fix QPrinter::setPaperSize regression when using QPrinter::DevicePixel 2015-01-19 10:39:55 +01:00
shared Android: Keyboard doesn't hide from done button 2014-10-25 07:19:35 +02:00
sql Correction on bound values in case of repeated QSqlQuery::execBatch 2015-01-16 13:14:26 +01:00
testlib Autotest: Selftests fail in UTC timezone 2015-01-19 10:21:26 +01:00
tools Make QtDBus unit tests compile with runtime dbus-1 too 2015-01-06 18:16:32 +01:00
widgets Make sure there's a scene before using it 2015-02-17 13:47:16 +00:00
xml Update license headers and add new license files 2014-09-24 12:26:19 +02:00
auto.pro Temporarily disable the QtDBus tests if the session bus isn't available 2014-12-23 12:22:56 +01:00
network-settings.h Autotest: don't leak a socket every call to QtNetworkSettings::hasIPv6 2015-01-08 01:06:17 +01:00
qtest-config.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
test.pl Autotest: Find all autotests due to changed naming conventions 2015-01-16 08:14:55 +01:00