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