| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | | - |
| 14 | | - |
| 15 | static inline bool time_update(struct timespec *tv, const struct timespec &start, | - |
| 16 | const struct timespec &timeout) | - |
| 17 | { | - |
| 18 | | - |
| 19 | | - |
| 20 | struct timespec now = qt_gettime(); | - |
| 21 | *tv = timeout + start - now; | - |
| 22 | return tv->tv_sec >= 0; | - |
| 23 | } | - |
| 24 | | - |
| 25 | | - |
| 26 | static inline int qt_safe_selecttimespecToMillisecs(const struct timespec *ts) | - |
| 27 | { | - |
| 28 | returnexecuted 324551 times by 56 tests: return (ts == __null) ? -1 : (ts->tv_sec * 1000) + (ts->tv_nsec / 1000000);Executed by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QEventLoop
- tst_QFile
- tst_QFont
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QLocalSocket
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkInterface
- tst_QNetworkReply
- ...
(ts == __null) ? -1 :executed 324551 times by 56 tests: return (ts == __null) ? -1 : (ts->tv_sec * 1000) + (ts->tv_nsec / 1000000);Executed by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QEventLoop
- tst_QFile
- tst_QFont
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QLocalSocket
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkInterface
- tst_QNetworkReply
- ...
| 324551 |
| 29 | (ts->tv_sec * 1000) +executed 324551 times by 56 tests: return (ts == __null) ? -1 : (ts->tv_sec * 1000) + (ts->tv_nsec / 1000000);Executed by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QEventLoop
- tst_QFile
- tst_QFont
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QLocalSocket
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkInterface
- tst_QNetworkReply
- ...
executed 324551 times by 56 tests: return (ts == __null) ? -1 : (ts->tv_sec * 1000) + (ts->tv_nsec / 1000000);Executed by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QEventLoop
- tst_QFile
- tst_QFont
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QLocalSocket
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkInterface
- tst_QNetworkReply
- ...
(ts->tv_nsec / 1000000);executed 324551 times by 56 tests: return (ts == __null) ? -1 : (ts->tv_sec * 1000) + (ts->tv_nsec / 1000000);Executed by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QEventLoop
- tst_QFile
- tst_QFont
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QLocalSocket
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkInterface
- tst_QNetworkReply
- ...
| 324551 |
| 30 | } | - |
| 31 | | - |
| 32 | | - |
| 33 | | - |
| 34 | int qt_poll(struct pollfd *fds, nfds_t nfds, fd_setconst struct timespec *fdreadtimeout_ts); | - |
| 35 | | - |
| 36 | static inline int qt_ppoll(struct pollfd *fds, fd_setnfds_t nfds, const struct timespec *fdwritetimeout_ts) | - |
| 37 | { | - |
| 38 | | - |
| 39 | | - |
| 40 | | - |
| 41 | returnexecuted 324551 times by 56 tests: return ::poll(fds, nfds, timespecToMillisecs(timeout_ts));Executed by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QEventLoop
- tst_QFile
- tst_QFont
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QLocalSocket
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkInterface
- tst_QNetworkReply
- ...
::poll(fdsexecuted 324551 times by 56 tests: return ::poll(fds, nfds, timespecToMillisecs(timeout_ts));Executed by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QEventLoop
- tst_QFile
- tst_QFont
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QLocalSocket
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkInterface
- tst_QNetworkReply
- ...
executed 324551 times by 56 tests: return ::poll(fds, nfds, timespecToMillisecs(timeout_ts));Executed by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QEventLoop
- tst_QFile
- tst_QFont
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QLocalSocket
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkInterface
- tst_QNetworkReply
- ...
, fd_setnfds, timespecToMillisecs(timeout_ts));executed 324551 times by 56 tests: return ::poll(fds, nfds, timespecToMillisecs(timeout_ts));Executed by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QEventLoop
- tst_QFile
- tst_QFont
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QLocalSocket
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkInterface
- tst_QNetworkReply
- ...
| 324551 |
| 42 | | - |
| 43 | | - |
| 44 | | - |
| 45 | } | - |
| 46 | int qt_safe_poll(struct pollfd *fdexceptfds, nfds_t nfds, const struct timespec *orig_timeouttimeout_ts) | - |
| 47 | { | - |
| 48 | if (!orig_timeouttimeout_ts| TRUE | evaluated 765 times by 13 testsEvaluated by:- tst_QEventLoop
- tst_QGuiEventLoop
- tst_QLockFile
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QProcess
- tst_QSslSocket
- tst_QTcpSocket
- tst_QUndoGroup
- tst_QUndoStack
- tst_QXmlSimpleReader
- tst_qmake
- tst_qmakelib
| | FALSE | evaluated 321646 times by 52 testsEvaluated by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QEventLoop
- tst_QFile
- tst_QFont
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QLocalSocket
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkInterface
- tst_QNetworkReply
- ...
|
) { | 765-321646 |
| 49 | | - |
| 50 | int ret; | - |
| 51 | do { ret = selectqt_ppoll(nfds, fdread, fdwritefds, fdexceptnfds, 0nullptr); }executed 797 times by 13 tests: end of blockExecuted by:- tst_QEventLoop
- tst_QGuiEventLoop
- tst_QLockFile
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QProcess
- tst_QSslSocket
- tst_QTcpSocket
- tst_QUndoGroup
- tst_QUndoStack
- tst_QXmlSimpleReader
- tst_qmake
- tst_qmakelib
while (ret == -1| TRUE | evaluated 32 times by 3 testsEvaluated by:- tst_QProcess
- tst_qmake
- tst_qmakelib
| | FALSE | evaluated 765 times by 13 testsEvaluated by:- tst_QEventLoop
- tst_QGuiEventLoop
- tst_QLockFile
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QProcess
- tst_QSslSocket
- tst_QTcpSocket
- tst_QUndoGroup
- tst_QUndoStack
- tst_QXmlSimpleReader
- tst_qmake
- tst_qmakelib
|
&& (*| TRUE | evaluated 32 times by 3 testsEvaluated by:- tst_QProcess
- tst_qmake
- tst_qmakelib
| | FALSE | never evaluated |
__errno_location ()) == 4| TRUE | evaluated 32 times by 3 testsEvaluated by:- tst_QProcess
- tst_qmake
- tst_qmakelib
| | FALSE | never evaluated |
); | 0-797 |
| 52 | returnexecuted 765 times by 13 tests: return ret;Executed by:- tst_QEventLoop
- tst_QGuiEventLoop
- tst_QLockFile
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QProcess
- tst_QSslSocket
- tst_QTcpSocket
- tst_QUndoGroup
- tst_QUndoStack
- tst_QXmlSimpleReader
- tst_qmake
- tst_qmakelib
ret;executed 765 times by 13 tests: return ret;Executed by:- tst_QEventLoop
- tst_QGuiEventLoop
- tst_QLockFile
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QProcess
- tst_QSslSocket
- tst_QTcpSocket
- tst_QUndoGroup
- tst_QUndoStack
- tst_QXmlSimpleReader
- tst_qmake
- tst_qmakelib
| 765 |
| 53 | } | - |
| 54 | | - |
| 55 | timespec start = qt_gettime(); | - |
| 56 | timespec timeout = *orig_timeout; | - |
| | |
| | |
| int rettimeout_ts; | |
| 57 | | - |
| 58 | | - |
| 59 | for(;;) { | - |
| 60 | const int ret = ::pselectqt_ppoll(nfds, fdread, fdwritefds, fdexceptnfds, &timeout, 0); | - |
| 61 | if (ret != -1| TRUE | evaluated 321646 times by 53 testsEvaluated by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QEventLoop
- tst_QFile
- tst_QFont
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QLocalSocket
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkInterface
- tst_QNetworkReply
- ...
| | FALSE | evaluated 2108 times by 24 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDir
- tst_QFont
- tst_QIcon
- tst_QMimeDatabase
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QUuid
- tst_Selftests
- tst_qdbuscpp2xml
- tst_qdbusxml2cpp
- tst_qmessagehandler
- tst_qprocess - unknown status
- tst_rcc
- tst_uic
|
|| (*| TRUE | never evaluated | | FALSE | evaluated 2108 times by 24 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDir
- tst_QFont
- tst_QIcon
- tst_QMimeDatabase
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QUuid
- tst_Selftests
- tst_qdbuscpp2xml
- tst_qdbusxml2cpp
- tst_qmessagehandler
- tst_qprocess - unknown status
- tst_rcc
- tst_uic
|
__errno_location ()) != 4| TRUE | never evaluated | | FALSE | evaluated 2108 times by 24 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDir
- tst_QFont
- tst_QIcon
- tst_QMimeDatabase
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QUuid
- tst_Selftests
- tst_qdbuscpp2xml
- tst_qdbusxml2cpp
- tst_qmessagehandler
- tst_qprocess - unknown status
- tst_rcc
- tst_uic
|
) | 0-321646 |
| 62 | returnexecuted 321646 times by 53 tests: return ret;Executed by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QEventLoop
- tst_QFile
- tst_QFont
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QLocalSocket
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkInterface
- tst_QNetworkReply
- ...
ret;executed 321646 times by 53 tests: return ret;Executed by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QEventLoop
- tst_QFile
- tst_QFont
- tst_QFtp
- tst_QGuiEventLoop
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QIcon
- tst_QLocalSocket
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkInterface
- tst_QNetworkReply
- ...
| 321646 |
| 63 | | - |
| 64 | | - |
| 65 | if (!time_update(&timeout, start, *orig_timeouttimeout_ts)| TRUE | never evaluated | | FALSE | evaluated 2108 times by 24 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDir
- tst_QFont
- tst_QIcon
- tst_QMimeDatabase
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QUuid
- tst_Selftests
- tst_qdbuscpp2xml
- tst_qdbusxml2cpp
- tst_qmessagehandler
- tst_qprocess - unknown status
- tst_rcc
- tst_uic
|
) { | 0-2108 |
| 66 | | - |
| 67 | | - |
| 68 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 69 | }} | - |
| 70 | }executed 2108 times by 24 tests: end of blockExecuted by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDir
- tst_QFont
- tst_QIcon
- tst_QMimeDatabase
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QUuid
- tst_Selftests
- tst_qdbuscpp2xml
- tst_qdbusxml2cpp
- tst_qmessagehandler
- tst_qprocess - unknown status
- tst_rcc
- tst_uic
| 2108 |
| int qt_select_msecs(int nfds, fd_set *fdread, fd_set *fdwrite, int timeout) | |
| { | |
| if (timeout < 0) | |
| return qt_safe_select(nfds, fdread, fdwrite, 0, 0); | |
| | |
| struct timespec tv; | |
| tv.tv_sec = timeout / 1000; | |
| tv.tv_nsec = (timeout % 1000) * 1000 * 1000; | |
| return qt_safe_select(nfds, fdread, fdwrite, 0, &tv);} never executed: end of block | |
| 72 | | - |
| 73 | | - |
| | |