| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | | - |
| 14 | | - |
| 15 | | - |
| 16 | | - |
| 17 | | - |
| 18 | | - |
| 19 | static const int errorBufferMax = 512; | - |
| 20 | | - |
| 21 | static inline void add_fd(int &nfds, int fd, fd_set *fdset) | - |
| 22 | { | - |
| 23 | ((void) (((fdset)->fds_bits)[((fd) / (8 * (int) sizeof (__fd_mask)))] |= ((__fd_mask) 1 << ((fd) % (8 * (int) sizeof (__fd_mask)))))); | - |
| 24 | if ((| TRUE | evaluated 110516 times by 28 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
| | FALSE | evaluated 2525 times by 11 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QTextStream
- tst_qdbusxml2cpp
- tst_qprocess - unknown status
|
fd) > nfds| TRUE | evaluated 110516 times by 28 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
| | FALSE | evaluated 2525 times by 11 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QTextStream
- tst_qdbusxml2cpp
- tst_qprocess - unknown status
|
) | 2525-110516 |
| 25 | nfds = fd;executed 110516 times by 28 tests: nfds = fd;Executed by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
| 110516 |
| 26 | }executed 113041 times by 29 tests: end of blockExecuted by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- tst_QMimeDatabase
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTextStream
- tst_QUuid
- tst_Selftests
- tst_qdbuscpp2xml
- tst_qdbusxml2cpp
- tst_qmake
- tst_qmakelib
- ...
| 113041 |
| 27 | | - |
| 28 | static int qt_create_pipe(int *pipe) | - |
| 29 | { | - |
| 30 | if (pipe[0] != -1| TRUE | never evaluated | | FALSE | evaluated 9861 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
|
) | 0-9861 |
| 31 | qt_safe_close(pipe[0]); never executed: qt_safe_close(pipe[0]); | 0 |
| 32 | if (pipe[1] != -1| TRUE | never evaluated | | FALSE | evaluated 9861 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
|
) | 0-9861 |
| 33 | qt_safe_close(pipe[1]); never executed: qt_safe_close(pipe[1]); | 0 |
| 34 | int pipe_ret = qt_safe_pipe(pipe); | - |
| 35 | if (pipe_ret != 0| TRUE | never evaluated | | FALSE | evaluated 9861 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
|
) { | 0-9861 |
| 36 | QMessageLogger(__FILE__, 133, __PRETTY_FUNCTION__).warning("QProcessPrivate::createPipe: Cannot create pipe %p: %s", | - |
| 37 | pipe, QString(qt_error_string((*__errno_location ()))).toLocal8Bit().constData()); | - |
| 38 | } never executed: end of block | 0 |
| 39 | returnexecuted 9861 times by 38 tests: return pipe_ret;Executed by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
pipe_ret;executed 9861 times by 38 tests: return pipe_ret;Executed by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
| 9861 |
| 40 | } | - |
| 41 | | - |
| 42 | void QProcessPrivate::destroyPipe(int *pipe) | - |
| 43 | { | - |
| 44 | if (pipe[1] != -1| TRUE | evaluated 2468 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
| | FALSE | evaluated 18075 times by 43 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
|
) { | 2468-18075 |
| 45 | qt_safe_close(pipe[1]); | - |
| 46 | pipe[1] = -1; | - |
| 47 | }executed 2468 times by 38 tests: end of blockExecuted by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
| 2468 |
| 48 | if (pipe[0] != -1| TRUE | evaluated 4917 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
| | FALSE | evaluated 15626 times by 43 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
|
) { | 4917-15626 |
| 49 | qt_safe_close(pipe[0]); | - |
| 50 | pipe[0] = -1; | - |
| 51 | }executed 4917 times by 38 tests: end of blockExecuted by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
| 4917 |
| 52 | }executed 20543 times by 43 tests: end of blockExecuted by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
| 20543 |
| 53 | | - |
| 54 | void QProcessPrivate::closeChannel(Channel *channel) | - |
| 55 | { | - |
| 56 | destroyPipe(channel->pipe); | - |
| 57 | }executed 16335 times by 43 tests: end of blockExecuted by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
| 16335 |
| 58 | | - |
| 59 | | - |
| 60 | | - |
| 61 | | - |
| 62 | | - |
| 63 | | - |
| 64 | bool QProcessPrivate::openChannel(Channel &channel) | - |
| 65 | { | - |
| 66 | QProcess * const q = q_func(); | - |
| 67 | | - |
| 68 | if (&channel == &stderrChannel| TRUE | evaluated 2473 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
| | FALSE | evaluated 4946 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
|
&& processChannelMode == QProcess::MergedChannels| TRUE | evaluated 16 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QProcess
| | FALSE | evaluated 2457 times by 37 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- ...
|
) { | 16-4946 |
| 69 | channel.pipe[0] = -1; | - |
| 70 | channel.pipe[1] = -1; | - |
| 71 | returnexecuted 16 times by 2 tests: return true;Executed by:- tst_QMimeDatabase
- tst_QProcess
true;executed 16 times by 2 tests: return true;Executed by:- tst_QMimeDatabase
- tst_QProcess
| 16 |
| 72 | } | - |
| 73 | | - |
| 74 | if (channel.type == Channel::Normal| TRUE | evaluated 7385 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
| | FALSE | evaluated 18 times by 1 test |
) { | 18-7385 |
| 75 | | - |
| 76 | if (qt_create_pipe(channel.pipe) != 0| TRUE | never evaluated | | FALSE | evaluated 7385 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
|
) | 0-7385 |
| 77 | return never executed: return false; false;never executed: return false; | 0 |
| 78 | | - |
| 79 | | - |
| 80 | if (threadData->hasEventDispatcher()| TRUE | evaluated 7142 times by 36 testsEvaluated by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- ...
| | FALSE | evaluated 243 times by 2 testsEvaluated by:- tst_QApplication
- tst_qdbuscpp2xml
|
) { | 243-7142 |
| 81 | if (&channel == &stdinChannel| TRUE | evaluated 2387 times by 36 testsEvaluated by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- ...
| | FALSE | evaluated 4755 times by 36 testsEvaluated by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- ...
|
) { | 2387-4755 |
| 82 | channel.notifier = new QSocketNotifier(channel.pipe[1], | - |
| 83 | QSocketNotifier::Write, q); | - |
| 84 | channel.notifier->setEnabled(false); | - |
| 85 | QObject::connect(channel.notifier, qFlagLocation("2""activated(int)" "\0" __FILE__ ":" "182"), | - |
| 86 | q, qFlagLocation("1""_q_canWrite()" "\0" __FILE__ ":" "183")); | - |
| 87 | }executed 2387 times by 36 tests: end of blockExecuted by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- ...
else { | 2387 |
| 88 | channel.notifier = new QSocketNotifier(channel.pipe[0], | - |
| 89 | QSocketNotifier::Read, q); | - |
| 90 | const char *receiver; | - |
| 91 | if (&channel == &stdoutChannel| TRUE | evaluated 2382 times by 36 testsEvaluated by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- ...
| | FALSE | evaluated 2373 times by 35 testsEvaluated by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- tst_QUndoGroup
- ...
|
) | 2373-2382 |
| 92 | receiver = qFlagLocation("1""_q_canReadStandardOutput()" "\0" __FILE__ ":" "189");executed 2382 times by 36 tests: receiver = qFlagLocation("1""_q_canReadStandardOutput()" "\0" __FILE__ ":" "189");Executed by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- ...
| 2382 |
| 93 | else | - |
| 94 | receiver = qFlagLocation("1""_q_canReadStandardError()" "\0" __FILE__ ":" "191");executed 2373 times by 35 tests: receiver = qFlagLocation("1""_q_canReadStandardError()" "\0" __FILE__ ":" "191");Executed by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- tst_QUndoGroup
- ...
| 2373 |
| 95 | QObject::connect(channel.notifier, qFlagLocation("2""activated(int)" "\0" __FILE__ ":" "192"), | - |
| 96 | q, receiver); | - |
| 97 | }executed 4755 times by 36 tests: end of blockExecuted by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- ...
| 4755 |
| 98 | } | - |
| 99 | | - |
| 100 | returnexecuted 7385 times by 38 tests: return true;Executed by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
true;executed 7385 times by 38 tests: return true;Executed by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
| 7385 |
| 101 | } else if (channel.type == Channel::Redirect| TRUE | evaluated 12 times by 1 test | | FALSE | evaluated 6 times by 1 test |
) { | 6-12 |
| 102 | | - |
| 103 | QByteArray fname = QFile::encodeName(channel.file); | - |
| 104 | | - |
| 105 | if (&channel == &stdinChannel| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 10 times by 1 test |
) { | 2-10 |
| 106 | | - |
| 107 | channel.pipe[1] = -1; | - |
| 108 | if ( (| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
channel.pipe[0] = qt_safe_open(fname, 00)) != -1| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) | 0-2 |
| 109 | returnexecuted 2 times by 1 test: return true; true;executed 2 times by 1 test: return true; | 2 |
| 110 | setErrorAndEmit(QProcess::FailedToStart, | - |
| 111 | QProcess::tr("Could not open input redirection for reading")); | - |
| 112 | } never executed: end of block else { | 0 |
| 113 | int mode = 01 | 0100; | - |
| 114 | if (channel.append| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 7 times by 1 test |
) | 3-7 |
| 115 | mode |= 02000;executed 3 times by 1 test: mode |= 02000; | 3 |
| 116 | else | - |
| 117 | mode |= 01000;executed 7 times by 1 test: mode |= 01000; | 7 |
| 118 | | - |
| 119 | channel.pipe[0] = -1; | - |
| 120 | if ( (| TRUE | evaluated 10 times by 1 test | | FALSE | never evaluated |
channel.pipe[1] = qt_safe_open(fname, mode, 0666)) != -1| TRUE | evaluated 10 times by 1 test | | FALSE | never evaluated |
) | 0-10 |
| 121 | returnexecuted 10 times by 1 test: return true; true;executed 10 times by 1 test: return true; | 10 |
| 122 | | - |
| 123 | setErrorAndEmit(QProcess::FailedToStart, | - |
| 124 | QProcess::tr("Could not open input redirection for reading")); | - |
| 125 | } never executed: end of block | 0 |
| 126 | cleanup(); | - |
| 127 | return never executed: return false; false;never executed: return false; | 0 |
| 128 | } else { | - |
| 129 | ((!(channel.process)) ? qt_assert_x("QProcess::start", "Internal error",__FILE__,226) : qt_noop()); | - |
| 130 | | - |
| 131 | Channel *source; | - |
| 132 | Channel *sink; | - |
| 133 | | - |
| 134 | if (channel.type == Channel::PipeSource| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 3 times by 1 test |
) { | 3 |
| 135 | | - |
| 136 | source = &channel; | - |
| 137 | sink = &channel.process->stdinChannel; | - |
| 138 | | - |
| 139 | ((!(source == &stdoutChannel)) ? qt_assert("source == &stdoutChannel",__FILE__,236) : qt_noop()); | - |
| 140 | ((!(sink->process == this && sink->type == Channel::PipeSink)) ? qt_assert("sink->process == this && sink->type == Channel::PipeSink",__FILE__,237) : qt_noop()); | - |
| 141 | }executed 3 times by 1 test: end of block else { | 3 |
| 142 | | - |
| 143 | source = &channel.process->stdoutChannel; | - |
| 144 | sink = &channel; | - |
| 145 | | - |
| 146 | ((!(sink == &stdinChannel)) ? qt_assert("sink == &stdinChannel",__FILE__,243) : qt_noop()); | - |
| 147 | ((!(source->process == this && source->type == Channel::PipeSource)) ? qt_assert("source->process == this && source->type == Channel::PipeSource",__FILE__,244) : qt_noop()); | - |
| 148 | }executed 3 times by 1 test: end of block | 3 |
| 149 | | - |
| 150 | if (source->pipe[1] != -1| TRUE | never evaluated | | FALSE | evaluated 6 times by 1 test |
|| sink->pipe[0] != -1| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 3 times by 1 test |
) { | 0-6 |
| 151 | | - |
| 152 | returnexecuted 3 times by 1 test: return true; true;executed 3 times by 1 test: return true; | 3 |
| 153 | } else { | - |
| 154 | ((!(source->pipe[0] == -1 && source->pipe[1] == -1)) ? qt_assert("source->pipe[0] == INVALID_Q_PIPE && source->pipe[1] == INVALID_Q_PIPE",__FILE__,251) : qt_noop()); | - |
| 155 | ((!(sink->pipe[0] == -1 && sink->pipe[1] == -1)) ? qt_assert("sink->pipe[0] == INVALID_Q_PIPE && sink->pipe[1] == INVALID_Q_PIPE",__FILE__,252) : qt_noop()); | - |
| 156 | | - |
| 157 | Q_PIPE pipe[2] = { -1, -1 }; | - |
| 158 | if (qt_create_pipe(pipe) != 0| TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
) | 0-3 |
| 159 | return never executed: return false; false;never executed: return false; | 0 |
| 160 | sink->pipe[0] = pipe[0]; | - |
| 161 | source->pipe[1] = pipe[1]; | - |
| 162 | | - |
| 163 | returnexecuted 3 times by 1 test: return true; true;executed 3 times by 1 test: return true; | 3 |
| 164 | } | - |
| 165 | } | - |
| 166 | } | - |
| 167 | | - |
| 168 | | - |
| 169 | | - |
| 170 | | - |
| 171 | | - |
| 172 | | - |
| 173 | extern char **environ; | - |
| 174 | | - |
| 175 | | - |
| 176 | | - |
| 177 | QProcessEnvironment QProcessEnvironment::systemEnvironment() | - |
| 178 | { | - |
| 179 | QProcessEnvironment env; | - |
| 180 | | - |
| 181 | const char *entry; | - |
| 182 | for (int count = 0; (| TRUE | evaluated 301 times by 3 testsEvaluated by:- tst_QProcess
- tst_QProcessEnvironment
- tst_Selftests
| | FALSE | evaluated 10 times by 3 testsEvaluated by:- tst_QProcess
- tst_QProcessEnvironment
- tst_Selftests
|
entry = environ[count])| TRUE | evaluated 301 times by 3 testsEvaluated by:- tst_QProcess
- tst_QProcessEnvironment
- tst_Selftests
| | FALSE | evaluated 10 times by 3 testsEvaluated by:- tst_QProcess
- tst_QProcessEnvironment
- tst_Selftests
|
; ++count) { | 10-301 |
| 183 | const char *equal = strchr(entry, '='); | - |
| 184 | if (!equal| TRUE | never evaluated | | FALSE | evaluated 301 times by 3 testsEvaluated by:- tst_QProcess
- tst_QProcessEnvironment
- tst_Selftests
|
) | 0-301 |
| 185 | continue; never executed: continue; | 0 |
| 186 | | - |
| 187 | QByteArray name(entry, equal - entry); | - |
| 188 | QByteArray value(equal + 1); | - |
| 189 | env.d->hash.insert(QProcessEnvironmentPrivate::Key(name), | - |
| 190 | QProcessEnvironmentPrivate::Value(value)); | - |
| 191 | }executed 301 times by 3 tests: end of blockExecuted by:- tst_QProcess
- tst_QProcessEnvironment
- tst_Selftests
| 301 |
| 192 | | - |
| 193 | returnexecuted 10 times by 3 tests: return env;Executed by:- tst_QProcess
- tst_QProcessEnvironment
- tst_Selftests
env;executed 10 times by 3 tests: return env;Executed by:- tst_QProcess
- tst_QProcessEnvironment
- tst_Selftests
| 10 |
| 194 | } | - |
| 195 | | - |
| 196 | static char **_q_dupEnvironment(const QProcessEnvironmentPrivate::Hash &environment, int *envc) | - |
| 197 | { | - |
| 198 | *envc = 0; | - |
| 199 | if (environment.isEmpty()| TRUE | never evaluated | | FALSE | evaluated 994 times by 6 testsEvaluated by:- tst_QProcess
- tst_QSharedPointer
- tst_Selftests
- tst_qmake
- tst_qmakelib
- tst_qmessagehandler
|
) | 0-994 |
| 200 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 201 | | - |
| 202 | char **envp = new char *[environment.count() + 2]; | - |
| 203 | envp[environment.count()] = 0; | - |
| 204 | envp[environment.count() + 1] = 0; | - |
| 205 | | - |
| 206 | QProcessEnvironmentPrivate::Hash::ConstIterator it = environment.constBegin(); | - |
| 207 | const QProcessEnvironmentPrivate::Hash::ConstIterator end = environment.constEnd(); | - |
| 208 | for ( ; it != end| TRUE | evaluated 14601 times by 6 testsEvaluated by:- tst_QProcess
- tst_QSharedPointer
- tst_Selftests
- tst_qmake
- tst_qmakelib
- tst_qmessagehandler
| | FALSE | evaluated 994 times by 6 testsEvaluated by:- tst_QProcess
- tst_QSharedPointer
- tst_Selftests
- tst_qmake
- tst_qmakelib
- tst_qmessagehandler
|
; ++it) { | 994-14601 |
| 209 | QByteArray key = it.key().key; | - |
| 210 | QByteArray value = it.value().bytes(); | - |
| 211 | key.reserve(key.length() + 1 + value.length()); | - |
| 212 | key.append('='); | - |
| 213 | key.append(value); | - |
| 214 | | - |
| 215 | envp[(*envc)++] = ::strdup(key.constData()); | - |
| 216 | }executed 14601 times by 6 tests: end of blockExecuted by:- tst_QProcess
- tst_QSharedPointer
- tst_Selftests
- tst_qmake
- tst_qmakelib
- tst_qmessagehandler
| 14601 |
| 217 | | - |
| 218 | returnexecuted 994 times by 6 tests: return envp;Executed by:- tst_QProcess
- tst_QSharedPointer
- tst_Selftests
- tst_qmake
- tst_qmakelib
- tst_qmessagehandler
envp;executed 994 times by 6 tests: return envp;Executed by:- tst_QProcess
- tst_QSharedPointer
- tst_Selftests
- tst_qmake
- tst_qmakelib
- tst_qmessagehandler
| 994 |
| 219 | } | - |
| 220 | | - |
| 221 | void QProcessPrivate::startProcess() | - |
| 222 | { | - |
| 223 | QProcess * const q = q_func(); | - |
| 224 | | - |
| 225 | | - |
| 226 | | - |
| 227 | | - |
| 228 | | - |
| 229 | | - |
| 230 | if (!openChannel(stdinChannel)| TRUE | never evaluated | | FALSE | evaluated 2473 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
|
|| | 0-2473 |
| 231 | !openChannel(stdoutChannel)| TRUE | never evaluated | | FALSE | evaluated 2473 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
|
|| | 0-2473 |
| 232 | !openChannel(stderrChannel)| TRUE | never evaluated | | FALSE | evaluated 2473 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
|
|| | 0-2473 |
| 233 | qt_create_pipe(childStartedPipe) != 0| TRUE | never evaluated | | FALSE | evaluated 2473 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
|
) { | 0-2473 |
| 234 | setErrorAndEmit(QProcess::FailedToStart, qt_error_string((*__errno_location ()))); | - |
| 235 | cleanup(); | - |
| 236 | return; never executed: return; | 0 |
| 237 | } | - |
| 238 | | - |
| 239 | if (threadData->hasEventDispatcher()| TRUE | evaluated 2392 times by 36 testsEvaluated by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- ...
| | FALSE | evaluated 81 times by 2 testsEvaluated by:- tst_QApplication
- tst_qdbuscpp2xml
|
) { | 81-2392 |
| 240 | startupSocketNotifier = new QSocketNotifier(childStartedPipe[0], | - |
| 241 | QSocketNotifier::Read, q); | - |
| 242 | QObject::connect(startupSocketNotifier, qFlagLocation("2""activated(int)" "\0" __FILE__ ":" "339"), | - |
| 243 | q, qFlagLocation("1""_q_startupNotification()" "\0" __FILE__ ":" "340")); | - |
| 244 | }executed 2392 times by 36 tests: end of blockExecuted by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- ...
| 2392 |
| 245 | | - |
| 246 | | - |
| 247 | q->setProcessState(QProcess::Starting); | - |
| 248 | | - |
| 249 | | - |
| 250 | | - |
| 251 | char **argv = new char *[arguments.count() + 2]; | - |
| 252 | argv[arguments.count() + 1] = 0; | - |
| 253 | | - |
| 254 | | - |
| 255 | QByteArray encodedProgramName = QFile::encodeName(program); | - |
| 256 | char *dupProgramName = ::strdup(encodedProgramName.constData()); | - |
| 257 | argv[0] = dupProgramName; | - |
| 258 | | - |
| 259 | | - |
| 260 | for (int i = 0; i < arguments.count()| TRUE | evaluated 4043 times by 26 testsEvaluated by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUndoGroup
- tst_QUndoStack
- tst_Selftests
- tst_qdbuscpp2xml
- tst_qdbusxml2cpp
- tst_qmake
- tst_qmakelib
- tst_rcc
- ...
| | FALSE | evaluated 2473 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
|
; ++i) | 2473-4043 |
| 261 | argv[i + 1] = ::strdup(QFile::encodeName(arguments.at(i)).constData());executed 4043 times by 26 tests: argv[i + 1] = ::strdup(QFile::encodeName(arguments.at(i)).constData());Executed by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUndoGroup
- tst_QUndoStack
- tst_Selftests
- tst_qdbuscpp2xml
- tst_qdbusxml2cpp
- tst_qmake
- tst_qmakelib
- tst_rcc
- ...
| 4043 |
| 262 | | - |
| 263 | | - |
| 264 | int envc = 0; | - |
| 265 | char **envp = 0; | - |
| 266 | if (environment.d.constData()| TRUE | evaluated 994 times by 6 testsEvaluated by:- tst_QProcess
- tst_QSharedPointer
- tst_Selftests
- tst_qmake
- tst_qmakelib
- tst_qmessagehandler
| | FALSE | evaluated 1479 times by 34 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
|
) { | 994-1479 |
| 267 | QProcessEnvironmentPrivate::MutexLocker locker(environment.d); | - |
| 268 | envp = _q_dupEnvironment(environment.d.constData()->hash, &envc); | - |
| 269 | }executed 994 times by 6 tests: end of blockExecuted by:- tst_QProcess
- tst_QSharedPointer
- tst_Selftests
- tst_qmake
- tst_qmakelib
- tst_qmessagehandler
| 994 |
| 270 | | - |
| 271 | | - |
| 272 | const char *workingDirPtr = 0; | - |
| 273 | QByteArray encodedWorkingDirectory; | - |
| 274 | if (!workingDirectory.isEmpty()| TRUE | evaluated 263 times by 4 testsEvaluated by:- tst_Lancelot
- tst_QProcess
- tst_QSharedPointer
- tst_qmakelib
| | FALSE | evaluated 2210 times by 36 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- ...
|
) { | 263-2210 |
| 275 | encodedWorkingDirectory = QFile::encodeName(workingDirectory); | - |
| 276 | workingDirPtr = encodedWorkingDirectory.constData(); | - |
| 277 | }executed 263 times by 4 tests: end of blockExecuted by:- tst_Lancelot
- tst_QProcess
- tst_QSharedPointer
- tst_qmakelib
| 263 |
| 278 | | - |
| 279 | | - |
| 280 | | - |
| 281 | char **path = 0; | - |
| 282 | int pathc = 0; | - |
| 283 | if (!program.contains(QLatin1Char('/'))| TRUE | evaluated 282 times by 7 testsEvaluated by:- tst_Lancelot
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QFont
- tst_QProcess
- tst_QSharedPointer
- tst_qmake
| | FALSE | evaluated 2191 times by 34 testsEvaluated by:- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- tst_QUndoGroup
- tst_QUndoStack
- tst_QUuid
- ...
|
) { | 282-2191 |
| 284 | const QString pathEnv = QString::fromLocal8Bit(qgetenv("PATH")); | - |
| 285 | if (!pathEnv.isEmpty()| TRUE | evaluated 282 times by 7 testsEvaluated by:- tst_Lancelot
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QFont
- tst_QProcess
- tst_QSharedPointer
- tst_qmake
| | FALSE | never evaluated |
) { | 0-282 |
| 286 | QStringList pathEntries = pathEnv.split(QLatin1Char(':'), QString::SkipEmptyParts); | - |
| 287 | if (!pathEntries.isEmpty()| TRUE | evaluated 282 times by 7 testsEvaluated by:- tst_Lancelot
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QFont
- tst_QProcess
- tst_QSharedPointer
- tst_qmake
| | FALSE | never evaluated |
) { | 0-282 |
| 288 | pathc = pathEntries.size(); | - |
| 289 | path = new char *[pathc + 1]; | - |
| 290 | path[pathc] = 0; | - |
| 291 | | - |
| 292 | for (int k = 0; k < pathEntries.size()| TRUE | evaluated 3666 times by 7 testsEvaluated by:- tst_Lancelot
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QFont
- tst_QProcess
- tst_QSharedPointer
- tst_qmake
| | FALSE | evaluated 282 times by 7 testsEvaluated by:- tst_Lancelot
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QFont
- tst_QProcess
- tst_QSharedPointer
- tst_qmake
|
; ++k) { | 282-3666 |
| 293 | QByteArray tmp = QFile::encodeName(pathEntries.at(k)); | - |
| 294 | if (!tmp.endsWith('/')| TRUE | evaluated 3666 times by 7 testsEvaluated by:- tst_Lancelot
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QFont
- tst_QProcess
- tst_QSharedPointer
- tst_qmake
| | FALSE | never evaluated |
) tmp += '/';executed 3666 times by 7 tests: tmp += '/';Executed by:- tst_Lancelot
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QFont
- tst_QProcess
- tst_QSharedPointer
- tst_qmake
| 0-3666 |
| 295 | tmp += encodedProgramName; | - |
| 296 | path[k] = ::strdup(tmp.constData()); | - |
| 297 | }executed 3666 times by 7 tests: end of blockExecuted by:- tst_Lancelot
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QFont
- tst_QProcess
- tst_QSharedPointer
- tst_qmake
| 3666 |
| 298 | }executed 282 times by 7 tests: end of blockExecuted by:- tst_Lancelot
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QFont
- tst_QProcess
- tst_QSharedPointer
- tst_qmake
| 282 |
| 299 | }executed 282 times by 7 tests: end of blockExecuted by:- tst_Lancelot
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QFont
- tst_QProcess
- tst_QSharedPointer
- tst_qmake
| 282 |
| 300 | }executed 282 times by 7 tests: end of blockExecuted by:- tst_Lancelot
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QFont
- tst_QProcess
- tst_QSharedPointer
- tst_qmake
| 282 |
| 301 | | - |
| 302 | | - |
| 303 | pid_t childPid; | - |
| 304 | forkfd = ::forkfd(1, &childPid); | - |
| 305 | int lastForkErrno = (*__errno_location ()); | - |
| 306 | if (forkfd != (-2)| TRUE | evaluated 2473 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
| | FALSE | never evaluated |
) { | 0-2473 |
| 307 | | - |
| 308 | | - |
| 309 | free(dupProgramName); | - |
| 310 | for (int i = 1; i <= arguments.count()| TRUE | evaluated 4043 times by 26 testsEvaluated by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUndoGroup
- tst_QUndoStack
- tst_Selftests
- tst_qdbuscpp2xml
- tst_qdbusxml2cpp
- tst_qmake
- tst_qmakelib
- tst_rcc
- ...
| | FALSE | evaluated 2473 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
|
; ++i) | 2473-4043 |
| 311 | free(argv[i]);executed 4043 times by 26 tests: free(argv[i]);Executed by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUndoGroup
- tst_QUndoStack
- tst_Selftests
- tst_qdbuscpp2xml
- tst_qdbusxml2cpp
- tst_qmake
- tst_qmakelib
- tst_rcc
- ...
| 4043 |
| 312 | for (int i = 0; i < envc| TRUE | evaluated 14601 times by 6 testsEvaluated by:- tst_QProcess
- tst_QSharedPointer
- tst_Selftests
- tst_qmake
- tst_qmakelib
- tst_qmessagehandler
| | FALSE | evaluated 2473 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
|
; ++i) | 2473-14601 |
| 313 | free(envp[i]);executed 14601 times by 6 tests: free(envp[i]);Executed by:- tst_QProcess
- tst_QSharedPointer
- tst_Selftests
- tst_qmake
- tst_qmakelib
- tst_qmessagehandler
| 14601 |
| 314 | for (int i = 0; i < pathc| TRUE | evaluated 3666 times by 7 testsEvaluated by:- tst_Lancelot
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QFont
- tst_QProcess
- tst_QSharedPointer
- tst_qmake
| | FALSE | evaluated 2473 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
|
; ++i) | 2473-3666 |
| 315 | free(path[i]);executed 3666 times by 7 tests: free(path[i]);Executed by:- tst_Lancelot
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QFont
- tst_QProcess
- tst_QSharedPointer
- tst_qmake
| 3666 |
| 316 | delete [] argv; | - |
| 317 | delete [] envp; | - |
| 318 | delete [] path; | - |
| 319 | }executed 2473 times by 38 tests: end of blockExecuted by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
| 2473 |
| 320 | | - |
| 321 | | - |
| 322 | | - |
| 323 | | - |
| 324 | | - |
| 325 | if (forkfd == -1| TRUE | never evaluated | | FALSE | evaluated 2473 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
|
) { | 0-2473 |
| 326 | | - |
| 327 | | - |
| 328 | | - |
| 329 | | - |
| 330 | q->setProcessState(QProcess::NotRunning); | - |
| 331 | setErrorAndEmit(QProcess::FailedToStart, | - |
| 332 | QProcess::tr("Resource error (fork failure): %1").arg(qt_error_string(lastForkErrno))); | - |
| 333 | cleanup(); | - |
| 334 | return; never executed: return; | 0 |
| 335 | } | - |
| 336 | | - |
| 337 | | - |
| 338 | if (forkfd == (-2)| TRUE | never evaluated | | FALSE | evaluated 2473 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
|
) { | 0-2473 |
| 339 | execChild(workingDirPtr, path, argv, envp); | - |
| 340 | ::_exit(-1); | - |
| 341 | } never executed: end of block | 0 |
| 342 | | - |
| 343 | pid = Q_PID(childPid); | - |
| 344 | | - |
| 345 | | - |
| 346 | | - |
| 347 | qt_safe_close(childStartedPipe[1]); | - |
| 348 | childStartedPipe[1] = -1; | - |
| 349 | | - |
| 350 | if (stdinChannel.pipe[0] != -1| TRUE | evaluated 2473 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
| | FALSE | never evaluated |
) { | 0-2473 |
| 351 | qt_safe_close(stdinChannel.pipe[0]); | - |
| 352 | stdinChannel.pipe[0] = -1; | - |
| 353 | }executed 2473 times by 38 tests: end of blockExecuted by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
| 2473 |
| 354 | | - |
| 355 | if (stdinChannel.pipe[1] != -1| TRUE | evaluated 2468 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
| | FALSE | evaluated 5 times by 1 test |
) | 5-2468 |
| 356 | ::executed 2468 times by 38 tests: ::fcntl(stdinChannel.pipe[1], 4, ::fcntl(stdinChannel.pipe[1], 3) | 04000);Executed by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
fcntl(stdinChannel.pipe[1], 4, ::fcntl(stdinChannel.pipe[1], 3) | 04000);executed 2468 times by 38 tests: ::fcntl(stdinChannel.pipe[1], 4, ::fcntl(stdinChannel.pipe[1], 3) | 04000);Executed by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
| 2468 |
| 357 | | - |
| 358 | if (stdoutChannel.pipe[1] != -1| TRUE | evaluated 2473 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
| | FALSE | never evaluated |
) { | 0-2473 |
| 359 | qt_safe_close(stdoutChannel.pipe[1]); | - |
| 360 | stdoutChannel.pipe[1] = -1; | - |
| 361 | }executed 2473 times by 38 tests: end of blockExecuted by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
| 2473 |
| 362 | | - |
| 363 | if (stdoutChannel.pipe[0] != -1| TRUE | evaluated 2463 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
| | FALSE | evaluated 10 times by 1 test |
) | 10-2463 |
| 364 | ::executed 2463 times by 38 tests: ::fcntl(stdoutChannel.pipe[0], 4, ::fcntl(stdoutChannel.pipe[0], 3) | 04000);Executed by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
fcntl(stdoutChannel.pipe[0], 4, ::fcntl(stdoutChannel.pipe[0], 3) | 04000);executed 2463 times by 38 tests: ::fcntl(stdoutChannel.pipe[0], 4, ::fcntl(stdoutChannel.pipe[0], 3) | 04000);Executed by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
| 2463 |
| 365 | | - |
| 366 | if (stderrChannel.pipe[1] != -1| TRUE | evaluated 2457 times by 37 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- ...
| | FALSE | evaluated 16 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QProcess
|
) { | 16-2457 |
| 367 | qt_safe_close(stderrChannel.pipe[1]); | - |
| 368 | stderrChannel.pipe[1] = -1; | - |
| 369 | }executed 2457 times by 37 tests: end of blockExecuted by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- ...
| 2457 |
| 370 | if (stderrChannel.pipe[0] != -1| TRUE | evaluated 2454 times by 37 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- ...
| | FALSE | evaluated 19 times by 2 testsEvaluated by:- tst_QMimeDatabase
- tst_QProcess
|
) | 19-2454 |
| 371 | ::executed 2454 times by 37 tests: ::fcntl(stderrChannel.pipe[0], 4, ::fcntl(stderrChannel.pipe[0], 3) | 04000);Executed by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- ...
fcntl(stderrChannel.pipe[0], 4, ::fcntl(stderrChannel.pipe[0], 3) | 04000);executed 2454 times by 37 tests: ::fcntl(stderrChannel.pipe[0], 4, ::fcntl(stderrChannel.pipe[0], 3) | 04000);Executed by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- ...
| 2454 |
| 372 | | - |
| 373 | if (threadData->eventDispatcher| TRUE | evaluated 2392 times by 36 testsEvaluated by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- ...
| | FALSE | evaluated 81 times by 2 testsEvaluated by:- tst_QApplication
- tst_qdbuscpp2xml
|
) { | 81-2392 |
| 374 | deathNotifier = new QSocketNotifier(forkfd, QSocketNotifier::Read, q); | - |
| 375 | QObject::connect(deathNotifier, qFlagLocation("2""activated(int)" "\0" __FILE__ ":" "498"), | - |
| 376 | q, qFlagLocation("1""_q_processDied()" "\0" __FILE__ ":" "499")); | - |
| 377 | }executed 2392 times by 36 tests: end of blockExecuted by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- ...
| 2392 |
| 378 | }executed 2473 times by 38 tests: end of blockExecuted by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
| 2473 |
| 379 | | - |
| 380 | void QProcessPrivate::execChild(const char *workingDir, char **path, char **argv, char **envp) | - |
| 381 | { | - |
| 382 | ::signal(13, ((__sighandler_t) 0)); | - |
| 383 | | - |
| 384 | QProcess * const q = q_func(); | - |
| 385 | | - |
| 386 | | - |
| 387 | if (inputChannelMode != QProcess::ForwardedInputChannel| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 388 | qt_safe_dup2(stdinChannel.pipe[0], 0, 0); never executed: qt_safe_dup2(stdinChannel.pipe[0], 0, 0); | 0 |
| 389 | | - |
| 390 | | - |
| 391 | if (processChannelMode != QProcess::ForwardedChannels| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 392 | if (processChannelMode != QProcess::ForwardedOutputChannel| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 393 | qt_safe_dup2(stdoutChannel.pipe[1], 1, 0); never executed: qt_safe_dup2(stdoutChannel.pipe[1], 1, 0); | 0 |
| 394 | | - |
| 395 | | - |
| 396 | if (processChannelMode == QProcess::MergedChannels| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 397 | qt_safe_dup2(1, 2, 0); | - |
| 398 | } never executed: end of block else if (processChannelMode != QProcess::ForwardedErrorChannel| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 399 | qt_safe_dup2(stderrChannel.pipe[1], 2, 0); | - |
| 400 | } never executed: end of block | 0 |
| 401 | } never executed: end of block | 0 |
| 402 | | - |
| 403 | | - |
| 404 | qt_safe_close(childStartedPipe[0]); | - |
| 405 | | - |
| 406 | | - |
| 407 | if (workingDir| TRUE | never evaluated | | FALSE | never evaluated |
&& ::| TRUE | never evaluated | | FALSE | never evaluated |
chdir(workingDir) == -1| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 408 | | - |
| 409 | goto never executed: goto report_errno; report_errno;never executed: goto report_errno; | 0 |
| 410 | } | - |
| 411 | | - |
| 412 | | - |
| 413 | q->setupChildProcess(); | - |
| 414 | | - |
| 415 | | - |
| 416 | if (!envp| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 417 | qt_safe_execvp(argv[0], argv); | - |
| 418 | } never executed: end of block else { | 0 |
| 419 | if (path| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 420 | char **arg = path; | - |
| 421 | while (*| TRUE | never evaluated | | FALSE | never evaluated |
arg| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 422 | argv[0] = *arg; | - |
| 423 | | - |
| 424 | | - |
| 425 | | - |
| 426 | qt_safe_execve(argv[0], argv, envp); | - |
| 427 | ++arg; | - |
| 428 | } never executed: end of block | 0 |
| 429 | } never executed: end of block else { | 0 |
| 430 | | - |
| 431 | | - |
| 432 | | - |
| 433 | qt_safe_execve(argv[0], argv, envp); | - |
| 434 | } never executed: end of block | 0 |
| 435 | } | - |
| 436 | | - |
| 437 | | - |
| 438 | report_errno: code before this statement never executed: report_errno: | 0 |
| 439 | QString error = qt_error_string((*__errno_location ())); | - |
| 440 | | - |
| 441 | | - |
| 442 | | - |
| 443 | qt_safe_write(childStartedPipe[1], error.data(), error.length() * sizeof(QChar)); | - |
| 444 | qt_safe_close(childStartedPipe[1]); | - |
| 445 | childStartedPipe[1] = -1; | - |
| 446 | } never executed: end of block | 0 |
| 447 | | - |
| 448 | bool QProcessPrivate::processStarted(QString *errorMessage) | - |
| 449 | { | - |
| 450 | ushort buf[errorBufferMax]; | - |
| 451 | int i = qt_safe_read(childStartedPipe[0], &buf, sizeof buf); | - |
| 452 | if (startupSocketNotifier| TRUE | evaluated 2392 times by 36 testsEvaluated by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- ...
| | FALSE | evaluated 81 times by 2 testsEvaluated by:- tst_QApplication
- tst_qdbuscpp2xml
|
) { | 81-2392 |
| 453 | startupSocketNotifier->setEnabled(false); | - |
| 454 | startupSocketNotifier->deleteLater(); | - |
| 455 | startupSocketNotifier = 0; | - |
| 456 | }executed 2392 times by 36 tests: end of blockExecuted by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- ...
| 2392 |
| 457 | qt_safe_close(childStartedPipe[0]); | - |
| 458 | childStartedPipe[0] = -1; | - |
| 459 | | - |
| 460 | | - |
| 461 | | - |
| 462 | | - |
| 463 | | - |
| 464 | | - |
| 465 | if ((| TRUE | evaluated 704 times by 11 testsEvaluated by:- tst_QCommandLineParser
- tst_QFile
- tst_QLockFile
- tst_QProcess
- tst_QSharedPointer
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- tst_QUndoGroup
- tst_QUndoStack
| | FALSE | evaluated 1769 times by 29 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- tst_QMimeDatabase
- tst_QNetworkReply
- 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_qmake
- tst_qmakelib
- ...
|
i > 0)| TRUE | evaluated 704 times by 11 testsEvaluated by:- tst_QCommandLineParser
- tst_QFile
- tst_QLockFile
- tst_QProcess
- tst_QSharedPointer
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- tst_QUndoGroup
- tst_QUndoStack
| | FALSE | evaluated 1769 times by 29 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- tst_QMimeDatabase
- tst_QNetworkReply
- 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_qmake
- tst_qmakelib
- ...
|
&& errorMessage| TRUE | evaluated 704 times by 11 testsEvaluated by:- tst_QCommandLineParser
- tst_QFile
- tst_QLockFile
- tst_QProcess
- tst_QSharedPointer
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- tst_QUndoGroup
- tst_QUndoStack
| | FALSE | never evaluated |
) | 0-1769 |
| 466 | *executed 704 times by 11 tests: *errorMessage = QString((const QChar *)buf, i / sizeof(QChar));Executed by:- tst_QCommandLineParser
- tst_QFile
- tst_QLockFile
- tst_QProcess
- tst_QSharedPointer
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- tst_QUndoGroup
- tst_QUndoStack
errorMessage = QString((const QChar *)buf, i / sizeof(QChar));executed 704 times by 11 tests: *errorMessage = QString((const QChar *)buf, i / sizeof(QChar));Executed by:- tst_QCommandLineParser
- tst_QFile
- tst_QLockFile
- tst_QProcess
- tst_QSharedPointer
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- tst_QUndoGroup
- tst_QUndoStack
| 704 |
| 467 | | - |
| 468 | returnexecuted 2473 times by 38 tests: return i <= 0;Executed by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
i <= 0;executed 2473 times by 38 tests: return i <= 0;Executed by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
| 2473 |
| 469 | } | - |
| 470 | | - |
| 471 | qint64 QProcessPrivate::bytesAvailableInChannel(const Channel *channel) const | - |
| 472 | { | - |
| 473 | ((!(channel->pipe[0] != -1)) ? qt_assert("channel->pipe[0] != INVALID_Q_PIPE",__FILE__,596) : qt_noop()); | - |
| 474 | int nbytes = 0; | - |
| 475 | qint64 available = 0; | - |
| 476 | if (::| TRUE | evaluated 38181 times by 29 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- tst_QMimeDatabase
- tst_QNetworkReply
- 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_qmake
- tst_qmakelib
- ...
| | FALSE | never evaluated |
ioctl(channel->pipe[0], 0x541B, (char *) &nbytes) >= 0| TRUE | evaluated 38181 times by 29 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- tst_QMimeDatabase
- tst_QNetworkReply
- 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_qmake
- tst_qmakelib
- ...
| | FALSE | never evaluated |
) | 0-38181 |
| 477 | available = (qint64) nbytes;executed 38181 times by 29 tests: available = (qint64) nbytes;Executed by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- tst_QMimeDatabase
- tst_QNetworkReply
- 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_qmake
- tst_qmakelib
- ...
| 38181 |
| 478 | | - |
| 479 | | - |
| 480 | | - |
| 481 | returnexecuted 38181 times by 29 tests: return available;Executed by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- tst_QMimeDatabase
- tst_QNetworkReply
- 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_qmake
- tst_qmakelib
- ...
available;executed 38181 times by 29 tests: return available;Executed by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- tst_QMimeDatabase
- tst_QNetworkReply
- 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_qmake
- tst_qmakelib
- ...
| 38181 |
| 482 | } | - |
| 483 | | - |
| 484 | qint64 QProcessPrivate::readFromChannel(const Channel *channel, char *data, qint64 maxlen) | - |
| 485 | { | - |
| 486 | ((!(channel->pipe[0] != -1)) ? qt_assert("channel->pipe[0] != INVALID_Q_PIPE",__FILE__,609) : qt_noop()); | - |
| 487 | qint64 bytesRead = qt_safe_read(channel->pipe[0], data, maxlen); | - |
| 488 | | - |
| 489 | | - |
| 490 | | - |
| 491 | | - |
| 492 | | - |
| 493 | | - |
| 494 | | - |
| 495 | if (bytesRead == -1| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 38179 times by 29 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- tst_QMimeDatabase
- tst_QNetworkReply
- 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_qmake
- tst_qmakelib
- ...
|
&& (*| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
__errno_location ()) == 11| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) | 0-38179 |
| 496 | returnexecuted 2 times by 1 test: return -2; -2;executed 2 times by 1 test: return -2; | 2 |
| 497 | returnexecuted 38179 times by 29 tests: return bytesRead;Executed by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- tst_QMimeDatabase
- tst_QNetworkReply
- 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_qmake
- tst_qmakelib
- ...
bytesRead;executed 38179 times by 29 tests: return bytesRead;Executed by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- tst_QMimeDatabase
- tst_QNetworkReply
- 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_qmake
- tst_qmakelib
- ...
| 38179 |
| 498 | } | - |
| 499 | | - |
| 500 | bool QProcessPrivate::writeToStdin() | - |
| 501 | { | - |
| 502 | const char *data = stdinChannel.buffer.readPointer(); | - |
| 503 | const qint64 bytesToWrite = stdinChannel.buffer.nextDataBlockSize(); | - |
| 504 | | - |
| 505 | qint64 written = qt_safe_write_nosignal(stdinChannel.pipe[1], data, bytesToWrite); | - |
| 506 | | - |
| 507 | | - |
| 508 | | - |
| 509 | | - |
| 510 | | - |
| 511 | | - |
| 512 | if (written == -1| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 624 times by 6 testsEvaluated by:- tst_QNetworkReply
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QTextStream
- tst_qdbusxml2cpp
- tst_qprocess - unknown status
|
) { | 5-624 |
| 513 | | - |
| 514 | | - |
| 515 | | - |
| 516 | if ((*| TRUE | never evaluated | | FALSE | evaluated 5 times by 1 test |
__errno_location ()) == 11| TRUE | never evaluated | | FALSE | evaluated 5 times by 1 test |
) | 0-5 |
| 517 | return never executed: return true; true;never executed: return true; | 0 |
| 518 | | - |
| 519 | closeChannel(&stdinChannel); | - |
| 520 | setErrorAndEmit(QProcess::WriteError); | - |
| 521 | returnexecuted 5 times by 1 test: return false; false;executed 5 times by 1 test: return false; | 5 |
| 522 | } | - |
| 523 | stdinChannel.buffer.free(written); | - |
| 524 | if (!emittedBytesWritten| TRUE | evaluated 623 times by 6 testsEvaluated by:- tst_QNetworkReply
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QTextStream
- tst_qdbusxml2cpp
- tst_qprocess - unknown status
| | FALSE | evaluated 1 time by 1 test |
&& written != 0| TRUE | evaluated 623 times by 6 testsEvaluated by:- tst_QNetworkReply
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QTextStream
- tst_qdbusxml2cpp
- tst_qprocess - unknown status
| | FALSE | never evaluated |
) { | 0-623 |
| 525 | emittedBytesWritten = true; | - |
| 526 | q_func()->bytesWritten(written); | - |
| 527 | emittedBytesWritten = false; | - |
| 528 | }executed 623 times by 6 tests: end of blockExecuted by:- tst_QNetworkReply
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QTextStream
- tst_qdbusxml2cpp
- tst_qprocess - unknown status
| 623 |
| 529 | returnexecuted 624 times by 6 tests: return true;Executed by:- tst_QNetworkReply
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QTextStream
- tst_qdbusxml2cpp
- tst_qprocess - unknown status
true;executed 624 times by 6 tests: return true;Executed by:- tst_QNetworkReply
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QTextStream
- tst_qdbusxml2cpp
- tst_qprocess - unknown status
| 624 |
| 530 | } | - |
| 531 | | - |
| 532 | void QProcessPrivate::terminateProcess() | - |
| 533 | { | - |
| 534 | | - |
| 535 | | - |
| 536 | | - |
| 537 | if (pid| TRUE | evaluated 12 times by 3 testsEvaluated by:- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QProcess
| | FALSE | never evaluated |
) | 0-12 |
| 538 | ::executed 12 times by 3 tests: ::kill(pid_t(pid), 15);Executed by:- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QProcess
kill(pid_t(pid), 15);executed 12 times by 3 tests: ::kill(pid_t(pid), 15);Executed by:- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QProcess
| 12 |
| 539 | }executed 12 times by 3 tests: end of blockExecuted by:- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QProcess
| 12 |
| 540 | | - |
| 541 | void QProcessPrivate::killProcess() | - |
| 542 | { | - |
| 543 | | - |
| 544 | | - |
| 545 | | - |
| 546 | if (pid| TRUE | evaluated 11 times by 3 testsEvaluated by:- tst_QNetworkSession
- tst_QProcess
- tst_QSystemSemaphore
| | FALSE | evaluated 4 times by 4 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusInterface
- tst_QDBusMarshall
|
) | 4-11 |
| 547 | ::executed 11 times by 3 tests: ::kill(pid_t(pid), 9);Executed by:- tst_QNetworkSession
- tst_QProcess
- tst_QSystemSemaphore
kill(pid_t(pid), 9);executed 11 times by 3 tests: ::kill(pid_t(pid), 9);Executed by:- tst_QNetworkSession
- tst_QProcess
- tst_QSystemSemaphore
| 11 |
| 548 | }executed 15 times by 7 tests: end of blockExecuted by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QNetworkSession
- tst_QProcess
- tst_QSystemSemaphore
| 15 |
| 549 | | - |
| 550 | bool QProcessPrivate::waitForStarted(int msecs) | - |
| 551 | { | - |
| 552 | | - |
| 553 | | - |
| 554 | | - |
| 555 | | - |
| 556 | | - |
| 557 | fd_set fds; | - |
| 558 | do { int __d0, __d1; __asm__ __volatile__ ("cld; rep; " "stosq" : "=c" (__d0), "=D" (__d1) : "a" (0), "0" (sizeof (fd_set) / sizeof (__fd_mask)), "1" (&((&fds)->fds_bits)[0]) : "memory"); } while (0); | - |
| 559 | ((void) (((&fds)->fds_bits)[((childStartedPipe[0]) / (8 * (int) sizeof (__fd_mask)))] |= ((__fd_mask) 1 << ((childStartedPipe[0]) % (8 * (int) sizeof (__fd_mask)))))); | - |
| 560 | if (qt_select_msecs(childStartedPipe[0] + 1, &fds, 0, msecs) == 0| TRUE | never evaluated | | FALSE | evaluated 2246 times by 36 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- tst_QUndoGroup
- ...
|
) { | 0-2246 |
| 561 | setError(QProcess::Timedout); | - |
| 562 | | - |
| 563 | | - |
| 564 | | - |
| 565 | return never executed: return false; false;never executed: return false; | 0 |
| 566 | } | - |
| 567 | | - |
| 568 | bool startedEmitted = _q_startupNotification(); | - |
| 569 | | - |
| 570 | | - |
| 571 | | - |
| 572 | returnexecuted 2246 times by 36 tests: return startedEmitted;Executed by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- tst_QUndoGroup
- ...
startedEmitted;executed 2246 times by 36 tests: return startedEmitted;Executed by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- tst_QUndoGroup
- ...
| 2246 |
| 573 | } | - |
| 574 | bool QProcessPrivate::waitForReadyRead(int msecs) | - |
| 575 | { | - |
| 576 | | - |
| 577 | | - |
| 578 | | - |
| 579 | | - |
| 580 | QElapsedTimer stopWatch; | - |
| 581 | stopWatch.start(); | - |
| 582 | | - |
| 583 | | - |
| 584 | | - |
| 585 | | - |
| 586 | | - |
| 587 | for(;;) { | - |
| 588 | fd_set fdread; | - |
| 589 | fd_set fdwrite; | - |
| 590 | | - |
| 591 | do { int __d0, __d1; __asm__ __volatile__ ("cld; rep; " "stosq" : "=c" (__d0), "=D" (__d1) : "a" (0), "0" (sizeof (fd_set) / sizeof (__fd_mask)), "1" (&((&fdread)->fds_bits)[0]) : "memory"); } while (0); | - |
| 592 | do { int __d0, __d1; __asm__ __volatile__ ("cld; rep; " "stosq" : "=c" (__d0), "=D" (__d1) : "a" (0), "0" (sizeof (fd_set) / sizeof (__fd_mask)), "1" (&((&fdwrite)->fds_bits)[0]) : "memory"); } while (0); | - |
| 593 | | - |
| 594 | int nfds = forkfd; | - |
| 595 | ((void) (((&fdread)->fds_bits)[((forkfd) / (8 * (int) sizeof (__fd_mask)))] |= ((__fd_mask) 1 << ((forkfd) % (8 * (int) sizeof (__fd_mask)))))); | - |
| 596 | | - |
| 597 | if (processState == QProcess::Starting| TRUE | evaluated 115 times by 4 testsEvaluated by:- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QProcess
- tst_QTextStream
| | FALSE | evaluated 892 times by 8 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
|
) | 115-892 |
| 598 | add_fd(nfds, childStartedPipe[0], &fdread);executed 115 times by 4 tests: add_fd(nfds, childStartedPipe[0], &fdread);Executed by:- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QProcess
- tst_QTextStream
| 115 |
| 599 | | - |
| 600 | if (stdoutChannel.pipe[0] != -1| TRUE | evaluated 1006 times by 9 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QTextStream
| | FALSE | evaluated 1 time by 1 test |
) | 1-1006 |
| 601 | add_fd(nfds, stdoutChannel.pipe[0], &fdread);executed 1006 times by 9 tests: add_fd(nfds, stdoutChannel.pipe[0], &fdread);Executed by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QTextStream
| 1006 |
| 602 | if (stderrChannel.pipe[0] != -1| TRUE | evaluated 663 times by 9 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QTextStream
| | FALSE | evaluated 344 times by 5 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
|
) | 344-663 |
| 603 | add_fd(nfds, stderrChannel.pipe[0], &fdread);executed 663 times by 9 tests: add_fd(nfds, stderrChannel.pipe[0], &fdread);Executed by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QTextStream
| 663 |
| 604 | | - |
| 605 | if (!stdinChannel.buffer.isEmpty()| TRUE | evaluated 217 times by 2 testsEvaluated by:- tst_QProcess
- tst_QTextStream
| | FALSE | evaluated 790 times by 9 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QTextStream
|
&& stdinChannel.pipe[1] != -1| TRUE | evaluated 217 times by 2 testsEvaluated by:- tst_QProcess
- tst_QTextStream
| | FALSE | never evaluated |
) | 0-790 |
| 606 | add_fd(nfds, stdinChannel.pipe[1], &fdwrite);executed 217 times by 2 tests: add_fd(nfds, stdinChannel.pipe[1], &fdwrite);Executed by:- tst_QProcess
- tst_QTextStream
| 217 |
| 607 | | - |
| 608 | int timeout = qt_subtract_from_timeout(msecs, stopWatch.elapsed()); | - |
| 609 | | - |
| 610 | | - |
| 611 | | - |
| 612 | int ret = qt_select_msecs(nfds + 1, &fdread, &fdwrite, timeout); | - |
| 613 | | - |
| 614 | if (ret < 0| TRUE | never evaluated | | FALSE | evaluated 1007 times by 9 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QTextStream
|
) { | 0-1007 |
| 615 | break; never executed: break; | 0 |
| 616 | } | - |
| 617 | if (ret == 0| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 1002 times by 9 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QTextStream
|
) { | 5-1002 |
| 618 | setError(QProcess::Timedout); | - |
| 619 | returnexecuted 5 times by 1 test: return false; false;executed 5 times by 1 test: return false; | 5 |
| 620 | } | - |
| 621 | | - |
| 622 | if (childStartedPipe[0] != -1| TRUE | evaluated 115 times by 4 testsEvaluated by:- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QProcess
- tst_QTextStream
| | FALSE | evaluated 887 times by 8 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
|
&& ((((| TRUE | evaluated 113 times by 4 testsEvaluated by:- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QProcess
- tst_QTextStream
| | FALSE | evaluated 2 times by 2 testsEvaluated by:- tst_QProcess
- tst_QTextStream
|
&fdread)->fds_bits)[((childStartedPipe[0]) / (8 * (int) sizeof (__fd_mask)))] & ((__fd_mask) 1 << ((childStartedPipe[0]) % (8 * (int) sizeof (__fd_mask))))) != 0)| TRUE | evaluated 113 times by 4 testsEvaluated by:- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QProcess
- tst_QTextStream
| | FALSE | evaluated 2 times by 2 testsEvaluated by:- tst_QProcess
- tst_QTextStream
|
) { | 2-887 |
| 623 | if (!_q_startupNotification()| TRUE | evaluated 102 times by 2 testsEvaluated by:- tst_QProcess
- tst_QTextStream
| | FALSE | evaluated 11 times by 3 testsEvaluated by:- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QProcess
|
) | 11-102 |
| 624 | returnexecuted 102 times by 2 tests: return false;Executed by:- tst_QProcess
- tst_QTextStream
false;executed 102 times by 2 tests: return false;Executed by:- tst_QProcess
- tst_QTextStream
| 102 |
| 625 | }executed 11 times by 3 tests: end of blockExecuted by:- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QProcess
| 11 |
| 626 | | - |
| 627 | bool readyReadEmitted = false; | - |
| 628 | if (stdoutChannel.pipe[0] != -1| TRUE | evaluated 899 times by 9 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QTextStream
| | FALSE | evaluated 1 time by 1 test |
&& ((((| TRUE | evaluated 620 times by 8 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
| | FALSE | evaluated 279 times by 8 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QTextStream
|
&fdread)->fds_bits)[((stdoutChannel.pipe[0]) / (8 * (int) sizeof (__fd_mask)))] & ((__fd_mask) 1 << ((stdoutChannel.pipe[0]) % (8 * (int) sizeof (__fd_mask))))) != 0)| TRUE | evaluated 620 times by 8 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
| | FALSE | evaluated 279 times by 8 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QTextStream
|
) { | 1-899 |
| 629 | bool canRead = _q_canReadStandardOutput(); | - |
| 630 | if (processChannel == QProcess::StandardOutput| TRUE | evaluated 605 times by 8 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
| | FALSE | evaluated 15 times by 1 test |
&& canRead| TRUE | evaluated 604 times by 8 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
| | FALSE | evaluated 1 time by 1 test |
) | 1-605 |
| 631 | readyReadEmitted = true;executed 604 times by 8 tests: readyReadEmitted = true;Executed by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
| 604 |
| 632 | }executed 620 times by 8 tests: end of blockExecuted by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
| 620 |
| 633 | if (stderrChannel.pipe[0] != -1| TRUE | evaluated 556 times by 9 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QTextStream
| | FALSE | evaluated 344 times by 5 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
|
&& ((((| TRUE | evaluated 52 times by 5 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
| | FALSE | evaluated 504 times by 5 testsEvaluated by:- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QTextStream
|
&fdread)->fds_bits)[((stderrChannel.pipe[0]) / (8 * (int) sizeof (__fd_mask)))] & ((__fd_mask) 1 << ((stderrChannel.pipe[0]) % (8 * (int) sizeof (__fd_mask))))) != 0)| TRUE | evaluated 52 times by 5 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
| | FALSE | evaluated 504 times by 5 testsEvaluated by:- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QTextStream
|
) { | 52-556 |
| 634 | bool canRead = _q_canReadStandardError(); | - |
| 635 | if (processChannel == QProcess::StandardError| TRUE | evaluated 22 times by 1 test | | FALSE | evaluated 30 times by 5 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
|
&& canRead| TRUE | evaluated 22 times by 1 test | | FALSE | never evaluated |
) | 0-30 |
| 636 | readyReadEmitted = true;executed 22 times by 1 test: readyReadEmitted = true; | 22 |
| 637 | }executed 52 times by 5 tests: end of blockExecuted by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
| 52 |
| 638 | if (readyReadEmitted| TRUE | evaluated 626 times by 8 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
| | FALSE | evaluated 274 times by 8 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QTextStream
|
) | 274-626 |
| 639 | returnexecuted 626 times by 8 tests: return true;Executed by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
true;executed 626 times by 8 tests: return true;Executed by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
| 626 |
| 640 | | - |
| 641 | if (stdinChannel.pipe[1] != -1| TRUE | evaluated 270 times by 8 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QTextStream
| | FALSE | evaluated 4 times by 1 test |
&& ((((| TRUE | evaluated 217 times by 2 testsEvaluated by:- tst_QProcess
- tst_QTextStream
| | FALSE | evaluated 53 times by 7 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
|
&fdwrite)->fds_bits)[((stdinChannel.pipe[1]) / (8 * (int) sizeof (__fd_mask)))] & ((__fd_mask) 1 << ((stdinChannel.pipe[1]) % (8 * (int) sizeof (__fd_mask))))) != 0)| TRUE | evaluated 217 times by 2 testsEvaluated by:- tst_QProcess
- tst_QTextStream
| | FALSE | evaluated 53 times by 7 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
|
) | 4-270 |
| 642 | _q_canWrite();executed 217 times by 2 tests: _q_canWrite();Executed by:- tst_QProcess
- tst_QTextStream
| 217 |
| 643 | | - |
| 644 | if (forkfd == -1| TRUE | never evaluated | | FALSE | evaluated 274 times by 8 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QTextStream
|
|| ((((| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 273 times by 8 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QTextStream
|
&fdread)->fds_bits)[((forkfd) / (8 * (int) sizeof (__fd_mask)))] & ((__fd_mask) 1 << ((forkfd) % (8 * (int) sizeof (__fd_mask))))) != 0)| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 273 times by 8 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QTextStream
|
) { | 0-274 |
| 645 | if (_q_processDied()| TRUE | evaluated 1 time by 1 test | | FALSE | never evaluated |
) | 0-1 |
| 646 | returnexecuted 1 time by 1 test: return false; false;executed 1 time by 1 test: return false; | 1 |
| 647 | } never executed: end of block | 0 |
| 648 | }executed 273 times by 8 tests: end of blockExecuted by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QTextStream
| 273 |
| 649 | return never executed: return false; false;never executed: return false; | 0 |
| 650 | } | - |
| 651 | | - |
| 652 | bool QProcessPrivate::waitForBytesWritten(int msecs) | - |
| 653 | { | - |
| 654 | | - |
| 655 | | - |
| 656 | | - |
| 657 | | - |
| 658 | QElapsedTimer stopWatch; | - |
| 659 | stopWatch.start(); | - |
| 660 | | - |
| 661 | | - |
| 662 | | - |
| 663 | | - |
| 664 | | - |
| 665 | while (!stdinChannel.buffer.isEmpty()| TRUE | evaluated 151 times by 2 testsEvaluated by:- tst_QProcess
- tst_qdbusxml2cpp
| | FALSE | evaluated 1 time by 1 test |
) { | 1-151 |
| 666 | fd_set fdread; | - |
| 667 | fd_set fdwrite; | - |
| 668 | | - |
| 669 | do { int __d0, __d1; __asm__ __volatile__ ("cld; rep; " "stosq" : "=c" (__d0), "=D" (__d1) : "a" (0), "0" (sizeof (fd_set) / sizeof (__fd_mask)), "1" (&((&fdread)->fds_bits)[0]) : "memory"); } while (0); | - |
| 670 | do { int __d0, __d1; __asm__ __volatile__ ("cld; rep; " "stosq" : "=c" (__d0), "=D" (__d1) : "a" (0), "0" (sizeof (fd_set) / sizeof (__fd_mask)), "1" (&((&fdwrite)->fds_bits)[0]) : "memory"); } while (0); | - |
| 671 | | - |
| 672 | int nfds = forkfd; | - |
| 673 | ((void) (((&fdread)->fds_bits)[((forkfd) / (8 * (int) sizeof (__fd_mask)))] |= ((__fd_mask) 1 << ((forkfd) % (8 * (int) sizeof (__fd_mask)))))); | - |
| 674 | | - |
| 675 | if (processState == QProcess::Starting| TRUE | never evaluated | | FALSE | evaluated 151 times by 2 testsEvaluated by:- tst_QProcess
- tst_qdbusxml2cpp
|
) | 0-151 |
| 676 | add_fd(nfds, childStartedPipe[0], &fdread); never executed: add_fd(nfds, childStartedPipe[0], &fdread); | 0 |
| 677 | | - |
| 678 | if (stdoutChannel.pipe[0] != -1| TRUE | evaluated 149 times by 2 testsEvaluated by:- tst_QProcess
- tst_qdbusxml2cpp
| | FALSE | evaluated 2 times by 1 test |
) | 2-149 |
| 679 | add_fd(nfds, stdoutChannel.pipe[0], &fdread);executed 149 times by 2 tests: add_fd(nfds, stdoutChannel.pipe[0], &fdread);Executed by:- tst_QProcess
- tst_qdbusxml2cpp
| 149 |
| 680 | if (stderrChannel.pipe[0] != -1| TRUE | evaluated 151 times by 2 testsEvaluated by:- tst_QProcess
- tst_qdbusxml2cpp
| | FALSE | never evaluated |
) | 0-151 |
| 681 | add_fd(nfds, stderrChannel.pipe[0], &fdread);executed 151 times by 2 tests: add_fd(nfds, stderrChannel.pipe[0], &fdread);Executed by:- tst_QProcess
- tst_qdbusxml2cpp
| 151 |
| 682 | | - |
| 683 | | - |
| 684 | if (!stdinChannel.buffer.isEmpty()| TRUE | evaluated 151 times by 2 testsEvaluated by:- tst_QProcess
- tst_qdbusxml2cpp
| | FALSE | never evaluated |
&& stdinChannel.pipe[1] != -1| TRUE | evaluated 151 times by 2 testsEvaluated by:- tst_QProcess
- tst_qdbusxml2cpp
| | FALSE | never evaluated |
) | 0-151 |
| 685 | add_fd(nfds, stdinChannel.pipe[1], &fdwrite);executed 151 times by 2 tests: add_fd(nfds, stdinChannel.pipe[1], &fdwrite);Executed by:- tst_QProcess
- tst_qdbusxml2cpp
| 151 |
| 686 | | - |
| 687 | int timeout = qt_subtract_from_timeout(msecs, stopWatch.elapsed()); | - |
| 688 | | - |
| 689 | | - |
| 690 | | - |
| 691 | int ret = qt_select_msecs(nfds + 1, &fdread, &fdwrite, timeout); | - |
| 692 | | - |
| 693 | if (ret < 0| TRUE | never evaluated | | FALSE | evaluated 151 times by 2 testsEvaluated by:- tst_QProcess
- tst_qdbusxml2cpp
|
) { | 0-151 |
| 694 | break; never executed: break; | 0 |
| 695 | } | - |
| 696 | | - |
| 697 | if (ret == 0| TRUE | never evaluated | | FALSE | evaluated 151 times by 2 testsEvaluated by:- tst_QProcess
- tst_qdbusxml2cpp
|
) { | 0-151 |
| 698 | setError(QProcess::Timedout); | - |
| 699 | return never executed: return false; false;never executed: return false; | 0 |
| 700 | } | - |
| 701 | | - |
| 702 | if (childStartedPipe[0] != -1| TRUE | never evaluated | | FALSE | evaluated 151 times by 2 testsEvaluated by:- tst_QProcess
- tst_qdbusxml2cpp
|
&& ((((| TRUE | never evaluated | | FALSE | never evaluated |
&fdread)->fds_bits)[((childStartedPipe[0]) / (8 * (int) sizeof (__fd_mask)))] & ((__fd_mask) 1 << ((childStartedPipe[0]) % (8 * (int) sizeof (__fd_mask))))) != 0)| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0-151 |
| 703 | if (!_q_startupNotification()| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 704 | return never executed: return false; false;never executed: return false; | 0 |
| 705 | } never executed: end of block | 0 |
| 706 | | - |
| 707 | if (stdinChannel.pipe[1] != -1| TRUE | evaluated 151 times by 2 testsEvaluated by:- tst_QProcess
- tst_qdbusxml2cpp
| | FALSE | never evaluated |
&& ((((| TRUE | evaluated 151 times by 2 testsEvaluated by:- tst_QProcess
- tst_qdbusxml2cpp
| | FALSE | never evaluated |
&fdwrite)->fds_bits)[((stdinChannel.pipe[1]) / (8 * (int) sizeof (__fd_mask)))] & ((__fd_mask) 1 << ((stdinChannel.pipe[1]) % (8 * (int) sizeof (__fd_mask))))) != 0)| TRUE | evaluated 151 times by 2 testsEvaluated by:- tst_QProcess
- tst_qdbusxml2cpp
| | FALSE | never evaluated |
) | 0-151 |
| 708 | returnexecuted 151 times by 2 tests: return _q_canWrite();Executed by:- tst_QProcess
- tst_qdbusxml2cpp
_q_canWrite();executed 151 times by 2 tests: return _q_canWrite();Executed by:- tst_QProcess
- tst_qdbusxml2cpp
| 151 |
| 709 | | - |
| 710 | if (stdoutChannel.pipe[0] != -1| TRUE | never evaluated | | FALSE | never evaluated |
&& ((((| TRUE | never evaluated | | FALSE | never evaluated |
&fdread)->fds_bits)[((stdoutChannel.pipe[0]) / (8 * (int) sizeof (__fd_mask)))] & ((__fd_mask) 1 << ((stdoutChannel.pipe[0]) % (8 * (int) sizeof (__fd_mask))))) != 0)| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 711 | _q_canReadStandardOutput(); never executed: _q_canReadStandardOutput(); | 0 |
| 712 | | - |
| 713 | if (stderrChannel.pipe[0] != -1| TRUE | never evaluated | | FALSE | never evaluated |
&& ((((| TRUE | never evaluated | | FALSE | never evaluated |
&fdread)->fds_bits)[((stderrChannel.pipe[0]) / (8 * (int) sizeof (__fd_mask)))] & ((__fd_mask) 1 << ((stderrChannel.pipe[0]) % (8 * (int) sizeof (__fd_mask))))) != 0)| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 714 | _q_canReadStandardError(); never executed: _q_canReadStandardError(); | 0 |
| 715 | | - |
| 716 | if (forkfd == -1| TRUE | never evaluated | | FALSE | never evaluated |
|| ((((| TRUE | never evaluated | | FALSE | never evaluated |
&fdread)->fds_bits)[((forkfd) / (8 * (int) sizeof (__fd_mask)))] & ((__fd_mask) 1 << ((forkfd) % (8 * (int) sizeof (__fd_mask))))) != 0)| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 717 | if (_q_processDied()| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 718 | return never executed: return false; false;never executed: return false; | 0 |
| 719 | } never executed: end of block | 0 |
| 720 | } never executed: end of block | 0 |
| 721 | | - |
| 722 | returnexecuted 1 time by 1 test: return false; false;executed 1 time by 1 test: return false; | 1 |
| 723 | } | - |
| 724 | | - |
| 725 | bool QProcessPrivate::waitForFinished(int msecs) | - |
| 726 | { | - |
| 727 | | - |
| 728 | | - |
| 729 | | - |
| 730 | | - |
| 731 | QElapsedTimer stopWatch; | - |
| 732 | stopWatch.start(); | - |
| 733 | | - |
| 734 | | - |
| 735 | | - |
| 736 | | - |
| 737 | | - |
| 738 | for(;;) { | - |
| 739 | fd_set fdread; | - |
| 740 | fd_set fdwrite; | - |
| 741 | int nfds = -1; | - |
| 742 | | - |
| 743 | do { int __d0, __d1; __asm__ __volatile__ ("cld; rep; " "stosq" : "=c" (__d0), "=D" (__d1) : "a" (0), "0" (sizeof (fd_set) / sizeof (__fd_mask)), "1" (&((&fdread)->fds_bits)[0]) : "memory"); } while (0); | - |
| 744 | do { int __d0, __d1; __asm__ __volatile__ ("cld; rep; " "stosq" : "=c" (__d0), "=D" (__d1) : "a" (0), "0" (sizeof (fd_set) / sizeof (__fd_mask)), "1" (&((&fdwrite)->fds_bits)[0]) : "memory"); } while (0); | - |
| 745 | | - |
| 746 | if (processState == QProcess::Starting| TRUE | never evaluated | | FALSE | evaluated 38470 times by 28 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
|
) | 0-38470 |
| 747 | add_fd(nfds, childStartedPipe[0], &fdread); never executed: add_fd(nfds, childStartedPipe[0], &fdread); | 0 |
| 748 | | - |
| 749 | if (stdoutChannel.pipe[0] != -1| TRUE | evaluated 36808 times by 28 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
| | FALSE | evaluated 1662 times by 25 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- tst_qprocess - unknown status
- tst_rcc
- tst_uic
|
) | 1662-36808 |
| 750 | add_fd(nfds, stdoutChannel.pipe[0], &fdread);executed 36808 times by 28 tests: add_fd(nfds, stdoutChannel.pipe[0], &fdread);Executed by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
| 36808 |
| 751 | if (stderrChannel.pipe[0] != -1| TRUE | evaluated 35238 times by 23 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- tst_qprocess - unknown status
- tst_rcc
- tst_uic
| | FALSE | evaluated 3232 times by 28 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
|
) | 3232-35238 |
| 752 | add_fd(nfds, stderrChannel.pipe[0], &fdread);executed 35238 times by 23 tests: add_fd(nfds, stderrChannel.pipe[0], &fdread);Executed by:- tst_Lancelot
- tst_QApplication
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- tst_qprocess - unknown status
- tst_rcc
- tst_uic
| 35238 |
| 753 | | - |
| 754 | if (processState == QProcess::Running| TRUE | evaluated 38470 times by 28 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
| | FALSE | never evaluated |
&& forkfd != -1| TRUE | evaluated 38470 times by 28 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
| | FALSE | never evaluated |
) | 0-38470 |
| 755 | add_fd(nfds, forkfd, &fdread);executed 38470 times by 28 tests: add_fd(nfds, forkfd, &fdread);Executed by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
| 38470 |
| 756 | | - |
| 757 | if (!stdinChannel.buffer.isEmpty()| TRUE | evaluated 78 times by 3 testsEvaluated by:- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_qprocess - unknown status
| | FALSE | evaluated 38392 times by 28 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
|
&& stdinChannel.pipe[1] != -1| TRUE | evaluated 73 times by 3 testsEvaluated by:- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_qprocess - unknown status
| | FALSE | evaluated 5 times by 1 test |
) | 5-38392 |
| 758 | add_fd(nfds, stdinChannel.pipe[1], &fdwrite);executed 73 times by 3 tests: add_fd(nfds, stdinChannel.pipe[1], &fdwrite);Executed by:- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_qprocess - unknown status
| 73 |
| 759 | | - |
| 760 | int timeout = qt_subtract_from_timeout(msecs, stopWatch.elapsed()); | - |
| 761 | | - |
| 762 | | - |
| 763 | | - |
| 764 | int ret = qt_select_msecs(nfds + 1, &fdread, &fdwrite, timeout); | - |
| 765 | | - |
| 766 | if (ret < 0| TRUE | never evaluated | | FALSE | evaluated 38470 times by 28 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
|
) { | 0-38470 |
| 767 | break; never executed: break; | 0 |
| 768 | } | - |
| 769 | if (ret == 0| TRUE | evaluated 4 times by 3 testsEvaluated by:- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSystemSemaphore
| | FALSE | evaluated 38466 times by 28 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
|
) { | 4-38466 |
| 770 | setError(QProcess::Timedout); | - |
| 771 | returnexecuted 4 times by 3 tests: return false;Executed by:- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSystemSemaphore
false;executed 4 times by 3 tests: return false;Executed by:- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSystemSemaphore
| 4 |
| 772 | } | - |
| 773 | | - |
| 774 | if (childStartedPipe[0] != -1| TRUE | never evaluated | | FALSE | evaluated 38466 times by 28 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
|
&& ((((| TRUE | never evaluated | | FALSE | never evaluated |
&fdread)->fds_bits)[((childStartedPipe[0]) / (8 * (int) sizeof (__fd_mask)))] & ((__fd_mask) 1 << ((childStartedPipe[0]) % (8 * (int) sizeof (__fd_mask))))) != 0)| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0-38466 |
| 775 | if (!_q_startupNotification()| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 776 | return never executed: return false; false;never executed: return false; | 0 |
| 777 | } never executed: end of block | 0 |
| 778 | if (stdinChannel.pipe[1] != -1| TRUE | evaluated 37133 times by 27 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- tst_qprocess - unknown status
- ...
| | FALSE | evaluated 1333 times by 5 testsEvaluated by:- tst_QProcess
- tst_QSharedPointer
- tst_qdbusxml2cpp
- tst_qprocess - unknown status
- tst_uic
|
&& ((((| TRUE | evaluated 66 times by 3 testsEvaluated by:- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_qprocess - unknown status
| | FALSE | evaluated 37067 times by 26 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- tst_rcc
- ...
|
&fdwrite)->fds_bits)[((stdinChannel.pipe[1]) / (8 * (int) sizeof (__fd_mask)))] & ((__fd_mask) 1 << ((stdinChannel.pipe[1]) % (8 * (int) sizeof (__fd_mask))))) != 0)| TRUE | evaluated 66 times by 3 testsEvaluated by:- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_qprocess - unknown status
| | FALSE | evaluated 37067 times by 26 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- tst_rcc
- ...
|
) | 66-37133 |
| 779 | _q_canWrite();executed 66 times by 3 tests: _q_canWrite();Executed by:- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_qprocess - unknown status
| 66 |
| 780 | | - |
| 781 | if (stdoutChannel.pipe[0] != -1| TRUE | evaluated 36806 times by 28 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
| | FALSE | evaluated 1660 times by 25 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- tst_qprocess - unknown status
- tst_rcc
- tst_uic
|
&& ((((| TRUE | evaluated 34629 times by 28 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
| | FALSE | evaluated 2177 times by 22 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- tst_qprocess - unknown status
- tst_rcc
- tst_uic
|
&fdread)->fds_bits)[((stdoutChannel.pipe[0]) / (8 * (int) sizeof (__fd_mask)))] & ((__fd_mask) 1 << ((stdoutChannel.pipe[0]) % (8 * (int) sizeof (__fd_mask))))) != 0)| TRUE | evaluated 34629 times by 28 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
| | FALSE | evaluated 2177 times by 22 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- tst_qprocess - unknown status
- tst_rcc
- tst_uic
|
) | 1660-36806 |
| 782 | _q_canReadStandardOutput();executed 34629 times by 28 tests: _q_canReadStandardOutput();Executed by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
| 34629 |
| 783 | | - |
| 784 | if (stderrChannel.pipe[0] != -1| TRUE | evaluated 35235 times by 23 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- tst_qprocess - unknown status
- tst_rcc
- tst_uic
| | FALSE | evaluated 3231 times by 28 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
|
&& ((((| TRUE | evaluated 2412 times by 23 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- tst_qprocess - unknown status
- tst_rcc
- tst_uic
| | FALSE | evaluated 32823 times by 15 testsEvaluated by:- tst_Lancelot
- tst_QDir
- tst_QFont
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedPointer
- tst_QUuid
- tst_Selftests
- tst_qdbuscpp2xml
- tst_qdbusxml2cpp
- tst_qmake
- tst_qmakelib
- tst_qprocess - unknown status
- tst_rcc
- tst_uic
|
&fdread)->fds_bits)[((stderrChannel.pipe[0]) / (8 * (int) sizeof (__fd_mask)))] & ((__fd_mask) 1 << ((stderrChannel.pipe[0]) % (8 * (int) sizeof (__fd_mask))))) != 0)| TRUE | evaluated 2412 times by 23 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- tst_qprocess - unknown status
- tst_rcc
- tst_uic
| | FALSE | evaluated 32823 times by 15 testsEvaluated by:- tst_Lancelot
- tst_QDir
- tst_QFont
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedPointer
- tst_QUuid
- tst_Selftests
- tst_qdbuscpp2xml
- tst_qdbusxml2cpp
- tst_qmake
- tst_qmakelib
- tst_qprocess - unknown status
- tst_rcc
- tst_uic
|
) | 2412-35235 |
| 785 | _q_canReadStandardError();executed 2412 times by 23 tests: _q_canReadStandardError();Executed by:- tst_Lancelot
- tst_QApplication
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- tst_qprocess - unknown status
- tst_rcc
- tst_uic
| 2412 |
| 786 | | - |
| 787 | if (forkfd == -1| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 38465 times by 28 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
|
|| ((((| TRUE | evaluated 1701 times by 28 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
| | FALSE | evaluated 36764 times by 25 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- tst_qprocess - unknown status
- tst_rcc
- tst_uic
|
&fdread)->fds_bits)[((forkfd) / (8 * (int) sizeof (__fd_mask)))] & ((__fd_mask) 1 << ((forkfd) % (8 * (int) sizeof (__fd_mask))))) != 0)| TRUE | evaluated 1701 times by 28 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
| | FALSE | evaluated 36764 times by 25 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- tst_qprocess - unknown status
- tst_rcc
- tst_uic
|
) { | 1-38465 |
| 788 | if (_q_processDied()| TRUE | evaluated 1702 times by 28 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
| | FALSE | never evaluated |
) | 0-1702 |
| 789 | returnexecuted 1702 times by 28 tests: return true;Executed by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
true;executed 1702 times by 28 tests: return true;Executed by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- ...
| 1702 |
| 790 | } never executed: end of block | 0 |
| 791 | }executed 36764 times by 25 tests: end of blockExecuted by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDir
- tst_QFont
- 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_qmake
- tst_qmakelib
- tst_qmessagehandler
- tst_qprocess - unknown status
- tst_rcc
- tst_uic
| 36764 |
| 792 | return never executed: return false; false;never executed: return false; | 0 |
| 793 | } | - |
| 794 | | - |
| 795 | bool QProcessPrivate::waitForWrite(int msecs) | - |
| 796 | { | - |
| 797 | fd_set fdwrite; | - |
| 798 | do { int __d0, __d1; __asm__ __volatile__ ("cld; rep; " "stosq" : "=c" (__d0), "=D" (__d1) : "a" (0), "0" (sizeof (fd_set) / sizeof (__fd_mask)), "1" (&((&fdwrite)->fds_bits)[0]) : "memory"); } while (0); | - |
| 799 | ((void) (((&fdwrite)->fds_bits)[((stdinChannel.pipe[1]) / (8 * (int) sizeof (__fd_mask)))] |= ((__fd_mask) 1 << ((stdinChannel.pipe[1]) % (8 * (int) sizeof (__fd_mask)))))); | - |
| 800 | return never executed: return qt_select_msecs(stdinChannel.pipe[1] + 1, 0, &fdwrite, msecs < 0 ? 0 : msecs) == 1; qt_select_msecs(stdinChannel.pipe[1] + 1, 0, &fdwrite, msecs < 0 ? 0 : msecs) == 1;never executed: return qt_select_msecs(stdinChannel.pipe[1] + 1, 0, &fdwrite, msecs < 0 ? 0 : msecs) == 1; | 0 |
| 801 | } | - |
| 802 | | - |
| 803 | void QProcessPrivate::findExitCode() | - |
| 804 | { | - |
| 805 | } | - |
| 806 | | - |
| 807 | bool QProcessPrivate::waitForDeadChild() | - |
| 808 | { | - |
| 809 | if (forkfd == -1| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 2473 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
|
) | 1-2473 |
| 810 | returnexecuted 1 time by 1 test: return true; true;executed 1 time by 1 test: return true; | 1 |
| 811 | | - |
| 812 | | - |
| 813 | forkfd_info info; | - |
| 814 | int ret; | - |
| 815 | do { ret = forkfd_wait(forkfd, &info, nullptr); }executed 3176 times by 38 tests: end of blockExecuted by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
while (ret == -1| TRUE | evaluated 703 times by 11 testsEvaluated by:- tst_QCommandLineParser
- tst_QFile
- tst_QLockFile
- tst_QProcess
- tst_QSharedPointer
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- tst_QUndoGroup
- tst_QUndoStack
| | FALSE | evaluated 2473 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
|
&& (*| TRUE | evaluated 703 times by 11 testsEvaluated by:- tst_QCommandLineParser
- tst_QFile
- tst_QLockFile
- tst_QProcess
- tst_QSharedPointer
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- tst_QUndoGroup
- tst_QUndoStack
| | FALSE | never evaluated |
__errno_location ()) == 4| TRUE | evaluated 703 times by 11 testsEvaluated by:- tst_QCommandLineParser
- tst_QFile
- tst_QLockFile
- tst_QProcess
- tst_QSharedPointer
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- tst_QUndoGroup
- tst_QUndoStack
| | FALSE | never evaluated |
); | 0-3176 |
| 816 | | - |
| 817 | exitCode = info.status; | - |
| 818 | crashed = info.code != CLD_EXITED; | - |
| 819 | | - |
| 820 | delete deathNotifier; | - |
| 821 | deathNotifier = 0; | - |
| 822 | | - |
| 823 | do { ret = forkfd_close(forkfd); }executed 2473 times by 38 tests: end of blockExecuted by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
while (ret == -1| TRUE | never evaluated | | FALSE | evaluated 2473 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
|
&& (*| TRUE | never evaluated | | FALSE | never evaluated |
__errno_location ()) == 4| TRUE | never evaluated | | FALSE | never evaluated |
); | 0-2473 |
| 824 | forkfd = -1; | - |
| 825 | | - |
| 826 | | - |
| 827 | | - |
| 828 | | - |
| 829 | | - |
| 830 | returnexecuted 2473 times by 38 tests: return true;Executed by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
true;executed 2473 times by 38 tests: return true;Executed by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QNetworkSession
- tst_QObject
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSharedPointer
- tst_QSystemSemaphore
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- ...
| 2473 |
| 831 | } | - |
| 832 | | - |
| 833 | bool QProcessPrivate::startDetached(const QString &program, const QStringList &arguments, const QString &workingDirectory, qint64 *pid) | - |
| 834 | { | - |
| 835 | QByteArray encodedWorkingDirectory = QFile::encodeName(workingDirectory); | - |
| 836 | | - |
| 837 | | - |
| 838 | int startedPipe[2]; | - |
| 839 | if (qt_safe_pipe(startedPipe) != 0| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
) | 0-4 |
| 840 | return never executed: return false; false;never executed: return false; | 0 |
| 841 | | - |
| 842 | int pidPipe[2]; | - |
| 843 | if (qt_safe_pipe(pidPipe) != 0| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
) { | 0-4 |
| 844 | qt_safe_close(startedPipe[0]); | - |
| 845 | qt_safe_close(startedPipe[1]); | - |
| 846 | return never executed: return false; false;never executed: return false; | 0 |
| 847 | } | - |
| 848 | | - |
| 849 | pid_t childPid = fork(); | - |
| 850 | if (childPid == 0| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
) { | 0-4 |
| 851 | struct sigaction noaction; | - |
| 852 | memset(&noaction, 0, sizeof(noaction)); | - |
| 853 | noaction.__sigaction_handler.sa_handler = ((__sighandler_t) 1); | - |
| 854 | ::sigaction(13, &noaction, 0); | - |
| 855 | | - |
| 856 | ::setsid(); | - |
| 857 | | - |
| 858 | qt_safe_close(startedPipe[0]); | - |
| 859 | qt_safe_close(pidPipe[0]); | - |
| 860 | | - |
| 861 | pid_t doubleForkPid = fork(); | - |
| 862 | if (doubleForkPid == 0| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 863 | qt_safe_close(pidPipe[1]); | - |
| 864 | | - |
| 865 | if (!encodedWorkingDirectory.isEmpty()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 866 | if (::| TRUE | never evaluated | | FALSE | never evaluated |
chdir(encodedWorkingDirectory.constData()) == -1| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 867 | QMessageLogger(__FILE__, 1002, __PRETTY_FUNCTION__).warning("QProcessPrivate::startDetached: failed to chdir to %s", encodedWorkingDirectory.constData()); never executed: QMessageLogger(__FILE__, 1002, __PRETTY_FUNCTION__).warning("QProcessPrivate::startDetached: failed to chdir to %s", encodedWorkingDirectory.constData()); | 0 |
| 868 | } never executed: end of block | 0 |
| 869 | | - |
| 870 | char **argv = new char *[arguments.size() + 2]; | - |
| 871 | for (int i = 0; i < arguments.size()| TRUE | never evaluated | | FALSE | never evaluated |
; ++i) | 0 |
| 872 | argv[i + 1] = ::strdup(QFile::encodeName(arguments.at(i)).constData()); never executed: argv[i + 1] = ::strdup(QFile::encodeName(arguments.at(i)).constData()); | 0 |
| 873 | argv[arguments.size() + 1] = 0; | - |
| 874 | | - |
| 875 | if (!program.contains(QLatin1Char('/'))| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 876 | const QString path = QString::fromLocal8Bit(qgetenv("PATH")); | - |
| 877 | if (!path.isEmpty()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 878 | QStringList pathEntries = path.split(QLatin1Char(':')); | - |
| 879 | for (int k = 0; k < pathEntries.size()| TRUE | never evaluated | | FALSE | never evaluated |
; ++k) { | 0 |
| 880 | QByteArray tmp = QFile::encodeName(pathEntries.at(k)); | - |
| 881 | if (!tmp.endsWith('/')| TRUE | never evaluated | | FALSE | never evaluated |
) tmp += '/';never executed: tmp += '/'; | 0 |
| 882 | tmp += QFile::encodeName(program); | - |
| 883 | argv[0] = tmp.data(); | - |
| 884 | qt_safe_execv(argv[0], argv); | - |
| 885 | } never executed: end of block | 0 |
| 886 | } never executed: end of block | 0 |
| 887 | } never executed: end of block else { | 0 |
| 888 | QByteArray tmp = QFile::encodeName(program); | - |
| 889 | argv[0] = tmp.data(); | - |
| 890 | qt_safe_execv(argv[0], argv); | - |
| 891 | } never executed: end of block | 0 |
| 892 | | - |
| 893 | struct sigaction noaction; | - |
| 894 | memset(&noaction, 0, sizeof(noaction)); | - |
| 895 | noaction.__sigaction_handler.sa_handler = ((__sighandler_t) 1); | - |
| 896 | ::sigaction(13, &noaction, 0); | - |
| 897 | | - |
| 898 | | - |
| 899 | char c = '\1'; | - |
| 900 | qt_safe_write(startedPipe[1], &c, 1); | - |
| 901 | qt_safe_close(startedPipe[1]); | - |
| 902 | ::_exit(1); | - |
| 903 | } never executed: end of block else if (doubleForkPid == -1| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 904 | struct sigaction noaction; | - |
| 905 | memset(&noaction, 0, sizeof(noaction)); | - |
| 906 | noaction.__sigaction_handler.sa_handler = ((__sighandler_t) 1); | - |
| 907 | ::sigaction(13, &noaction, 0); | - |
| 908 | | - |
| 909 | | - |
| 910 | char c = '\2'; | - |
| 911 | qt_safe_write(startedPipe[1], &c, 1); | - |
| 912 | } never executed: end of block | 0 |
| 913 | | - |
| 914 | qt_safe_close(startedPipe[1]); | - |
| 915 | qt_safe_write(pidPipe[1], (const char *)&doubleForkPid, sizeof(pid_t)); | - |
| 916 | if (::| TRUE | never evaluated | | FALSE | never evaluated |
chdir("/") == -1| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 917 | QMessageLogger(__FILE__, 1052, __PRETTY_FUNCTION__).warning("QProcessPrivate::startDetached: failed to chdir to /"); never executed: QMessageLogger(__FILE__, 1052, __PRETTY_FUNCTION__).warning("QProcessPrivate::startDetached: failed to chdir to /"); | 0 |
| 918 | ::_exit(1); | - |
| 919 | } never executed: end of block | 0 |
| 920 | | - |
| 921 | qt_safe_close(startedPipe[1]); | - |
| 922 | qt_safe_close(pidPipe[1]); | - |
| 923 | | - |
| 924 | if (childPid == -1| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
) { | 0-4 |
| 925 | qt_safe_close(startedPipe[0]); | - |
| 926 | qt_safe_close(pidPipe[0]); | - |
| 927 | return never executed: return false; false;never executed: return false; | 0 |
| 928 | } | - |
| 929 | | - |
| 930 | char reply = '\0'; | - |
| 931 | int startResult = qt_safe_read(startedPipe[0], &reply, 1); | - |
| 932 | int result; | - |
| 933 | qt_safe_close(startedPipe[0]); | - |
| 934 | qt_safe_waitpid(childPid, &result, 0); | - |
| 935 | bool success = (startResult != -1| TRUE | evaluated 4 times by 1 test | | FALSE | never evaluated |
&& reply == '\0'| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 2 times by 1 test |
); | 0-4 |
| 936 | if (success| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 2 times by 1 test |
&& pid| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 1 time by 1 test |
) { | 1-2 |
| 937 | pid_t actualPid = 0; | - |
| 938 | if (qt_safe_read(pidPipe[0], (char *)&actualPid, sizeof(pid_t)) == sizeof(pid_t)| TRUE | evaluated 1 time by 1 test | | FALSE | never evaluated |
) { | 0-1 |
| 939 | *pid = actualPid; | - |
| 940 | }executed 1 time by 1 test: end of block else { | 1 |
| 941 | *pid = 0; | - |
| 942 | } never executed: end of block | 0 |
| 943 | } | - |
| 944 | qt_safe_close(pidPipe[0]); | - |
| 945 | returnexecuted 4 times by 1 test: return success; success;executed 4 times by 1 test: return success; | 4 |
| 946 | } | - |
| 947 | | - |
| 948 | | - |
| | |