| 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 | | - |
| static inline void add_fdnamespace { | |
| 22 | struct QProcessPoller | - |
| 23 | { | - |
| 24 | QProcessPoller(const QProcessPrivate &proc); | - |
| 25 | | - |
| 26 | int &nfds,poll(int fd, fd_set *fdset)timeout); | - |
| 27 | | - |
| 28 | pollfd &stdinPipe() { ((void) (((fdset)->fds_bits)[((fd) / (8 *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
- ...
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
- ...
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(intconst QProcessPrivate &proc) | - |
| sizeof{ | |
| 40 | for (__fd_mask)))] |int i = ((__fd_mask)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(-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
- ...
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
- ...
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 (8 *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) | - |
| sizeof{ | |
| 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
|
__fd_mask))))));| 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
|
| 115-42333 |
| if ((| 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
|
| 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; | |
| 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,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
- ...
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
- ...
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) | - |
| nfds ={ | |
| 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.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
- ...
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
- ...
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) | - |
| 72 | qt_safe_close(pipe[0]); | - |
| 73 | if (pipe[1] != -1) | - |
| 74 | qt_safe_close(pipe[1]); | - |
| 75 | int pipe_ret = qt_safe_pipe(pipe); | - |
| 76 | if (pipe_ret != 0) { | - |
| 77 | QMessageLogger(__FILE__, 133181, __PRETTY_FUNCTION__).warning("QProcessPrivate::createPipe: Cannot create pipe %p: %s", | - |
| 78 | pipe, QString(qt_error_string((*__errno_location ()))).toLocal8Bit().constData()); | - |
| 79 | } | - |
| 80 | return pipe_ret; | - |
| 81 | } | - |
| 82 | | - |
| 83 | void QProcessPrivate::destroyPipe(int *pipe) | - |
| 84 | { | - |
| 85 | if (pipe[1] != -1) { | - |
| 86 | qt_safe_close(pipe[1]); | - |
| 87 | pipe[1] = -1; | - |
| 88 | } | - |
| 89 | if (pipe[0] != -1) { | - |
| 90 | qt_safe_close(pipe[0]); | - |
| 91 | pipe[0] = -1; | - |
| 92 | } | - |
| 93 | } | - |
| 94 | | - |
| 95 | void QProcessPrivate::closeChannel(Channel *channel) | - |
| 96 | { | - |
| 97 | destroyPipe(channel->pipe); | - |
| 98 | } | - |
| 99 | | - |
| 100 | | - |
| 101 | | - |
| 102 | | - |
| 103 | | - |
| 104 | | - |
| 105 | bool QProcessPrivate::openChannel(Channel &channel) | - |
| 106 | { | - |
| 107 | QProcess * const q = q_func(); | - |
| 108 | | - |
| 109 | if (&channel == &stderrChannel && processChannelMode == QProcess::MergedChannels) { | - |
| 110 | channel.pipe[0] = -1; | - |
| 111 | channel.pipe[1] = -1; | - |
| 112 | return true; | - |
| 113 | } | - |
| 114 | | - |
| 115 | if (channel.type == Channel::Normal) { | - |
| 116 | | - |
| 117 | if (qt_create_pipe(channel.pipe) != 0) | - |
| 118 | return false; | - |
| 119 | | - |
| 120 | | - |
| 121 | if (threadData->hasEventDispatcher()) { | - |
| 122 | if (&channel == &stdinChannel) { | - |
| 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__ ":" "182""230"), | - |
| 127 | q, qFlagLocation("1""_q_canWrite()" "\0" __FILE__ ":" "183""231")); | - |
| 128 | } else { | - |
| 129 | channel.notifier = new QSocketNotifier(channel.pipe[0], | - |
| 130 | QSocketNotifier::Read, q); | - |
| 131 | const char *receiver; | - |
| 132 | if (&channel == &stdoutChannel) | - |
| 133 | receiver = qFlagLocation("1""_q_canReadStandardOutput()" "\0" __FILE__ ":" "189""237"); | - |
| 134 | else | - |
| 135 | receiver = qFlagLocation("1""_q_canReadStandardError()" "\0" __FILE__ ":" "191""239"); | - |
| 136 | QObject::connect(channel.notifier, qFlagLocation("2""activated(int)" "\0" __FILE__ ":" "192""240"), | - |
| 137 | q, receiver); | - |
| 138 | } | - |
| 139 | } | - |
| 140 | | - |
| 141 | return true; | - |
| 142 | } else if (channel.type == Channel::Redirect) { | - |
| 143 | | - |
| 144 | QByteArray fname = QFile::encodeName(channel.file); | - |
| 145 | | - |
| 146 | if (&channel == &stdinChannel) { | - |
| 147 | | - |
| 148 | channel.pipe[1] = -1; | - |
| 149 | if ( (channel.pipe[0] = qt_safe_open(fname, 00)) != -1) | - |
| 150 | return true; | - |
| 151 | setErrorAndEmit(QProcess::FailedToStart, | - |
| 152 | QProcess::tr("Could not open input redirection for reading")); | - |
| 153 | } else { | - |
| 154 | int mode = 01 | 0100; | - |
| 155 | if (channel.append) | - |
| 156 | mode |= 02000; | - |
| 157 | else | - |
| 158 | mode |= 01000; | - |
| 159 | | - |
| 160 | channel.pipe[0] = -1; | - |
| 161 | if ( (channel.pipe[1] = qt_safe_open(fname, mode, 0666)) != -1) | - |
| 162 | return true; | - |
| 163 | | - |
| 164 | setErrorAndEmit(QProcess::FailedToStart, | - |
| 165 | QProcess::tr("Could not open input redirection for reading")); | - |
| 166 | } | - |
| 167 | cleanup(); | - |
| 168 | return false; | - |
| 169 | } else { | - |
| 170 | ((!(channel.process)) ? qt_assert_x("QProcess::start", "Internal error",__FILE__,226274) : qt_noop()); | - |
| 171 | | - |
| 172 | Channel *source; | - |
| 173 | Channel *sink; | - |
| 174 | | - |
| 175 | if (channel.type == Channel::PipeSource) { | - |
| 176 | | - |
| 177 | source = &channel; | - |
| 178 | sink = &channel.process->stdinChannel; | - |
| 179 | | - |
| 180 | ((!(source == &stdoutChannel)) ? qt_assert("source == &stdoutChannel",__FILE__,236284) : qt_noop()); | - |
| 181 | ((!(sink->process == this && sink->type == Channel::PipeSink)) ? qt_assert("sink->process == this && sink->type == Channel::PipeSink",__FILE__,237285) : qt_noop()); | - |
| 182 | } else { | - |
| 183 | | - |
| 184 | source = &channel.process->stdoutChannel; | - |
| 185 | sink = &channel; | - |
| 186 | | - |
| 187 | ((!(sink == &stdinChannel)) ? qt_assert("sink == &stdinChannel",__FILE__,243291) : qt_noop()); | - |
| 188 | ((!(source->process == this && source->type == Channel::PipeSource)) ? qt_assert("source->process == this && source->type == Channel::PipeSource",__FILE__,244292) : qt_noop()); | - |
| 189 | } | - |
| 190 | | - |
| 191 | if (source->pipe[1] != -1 || sink->pipe[0] != -1) { | - |
| 192 | | - |
| 193 | return true; | - |
| 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__,251299) : 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__,252300) : qt_noop()); | - |
| 197 | | - |
| 198 | Q_PIPE pipe[2] = { -1, -1 }; | - |
| 199 | if (qt_create_pipe(pipe) != 0) | - |
| 200 | return false; | - |
| 201 | sink->pipe[0] = pipe[0]; | - |
| 202 | source->pipe[1] = pipe[1]; | - |
| 203 | | - |
| 204 | return true; | - |
| 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; (entry = environ[count]); ++count) { | - |
| 224 | const char *equal = strchr(entry, '='); | - |
| 225 | if (!equal) | - |
| 226 | continue; | - |
| 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 | } | - |
| 233 | | - |
| 234 | return env; | - |
| 235 | } | - |
| 236 | | - |
| 237 | static char **_q_dupEnvironment(const QProcessEnvironmentPrivate::Hash &environment, int *envc) | - |
| 238 | { | - |
| 239 | *envc = 0; | - |
| 240 | if (environment.isEmpty()) | - |
| 241 | return 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; ++it) { | - |
| 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 | } | - |
| 258 | | - |
| 259 | return envp; | - |
| 260 | } | - |
| 261 | | - |
| 262 | void QProcessPrivate::startProcess() | - |
| 263 | { | - |
| 264 | QProcess * const q = q_func(); | - |
| 265 | | - |
| 266 | | - |
| 267 | | - |
| 268 | | - |
| 269 | | - |
| 270 | | - |
| 271 | if (!openChannel(stdinChannel) || | - |
| 272 | !openChannel(stdoutChannel) || | - |
| 273 | !openChannel(stderrChannel) || | - |
| 274 | qt_create_pipe(childStartedPipe) != 0) { | - |
| 275 | setErrorAndEmit(QProcess::FailedToStart, qt_error_string((*__errno_location ()))); | - |
| 276 | cleanup(); | - |
| 277 | return; | - |
| 278 | } | - |
| 279 | | - |
| 280 | if (threadData->hasEventDispatcher()) { | - |
| 281 | startupSocketNotifier = new QSocketNotifier(childStartedPipe[0], | - |
| 282 | QSocketNotifier::Read, q); | - |
| 283 | QObject::connect(startupSocketNotifier, qFlagLocation("2""activated(int)" "\0" __FILE__ ":" "339""387"), | - |
| 284 | q, qFlagLocation("1""_q_startupNotification()" "\0" __FILE__ ":" "340""388")); | - |
| 285 | } | - |
| 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(); ++i) | - |
| 302 | argv[i + 1] = ::strdup(QFile::encodeName(arguments.at(i)).constData()); | - |
| 303 | | - |
| 304 | | - |
| 305 | int envc = 0; | - |
| 306 | char **envp = 0; | - |
| 307 | if (environment.d.constData()) { | - |
| 308 | QProcessEnvironmentPrivate::MutexLocker locker(environment.d); | - |
| 309 | envp = _q_dupEnvironment(environment.d.constData()->hash, &envc); | - |
| 310 | } | - |
| 311 | | - |
| 312 | | - |
| 313 | const char *workingDirPtr = 0; | - |
| 314 | QByteArray encodedWorkingDirectory; | - |
| 315 | if (!workingDirectory.isEmpty()) { | - |
| 316 | encodedWorkingDirectory = QFile::encodeName(workingDirectory); | - |
| 317 | workingDirPtr = encodedWorkingDirectory.constData(); | - |
| 318 | } | - |
| 319 | | - |
| 320 | | - |
| 321 | | - |
| 322 | char **path = 0; | - |
| 323 | int pathc = 0; | - |
| 324 | if (!program.contains(QLatin1Char('/'))) { | - |
| 325 | const QString pathEnv = QString::fromLocal8Bit(qgetenv("PATH")); | - |
| 326 | if (!pathEnv.isEmpty()) { | - |
| 327 | QStringList pathEntries = pathEnv.split(QLatin1Char(':'), QString::SkipEmptyParts); | - |
| 328 | if (!pathEntries.isEmpty()) { | - |
| 329 | pathc = pathEntries.size(); | - |
| 330 | path = new char *[pathc + 1]; | - |
| 331 | path[pathc] = 0; | - |
| 332 | | - |
| 333 | for (int k = 0; k < pathEntries.size(); ++k) { | - |
| 334 | QByteArray tmp = QFile::encodeName(pathEntries.at(k)); | - |
| 335 | if (!tmp.endsWith('/')) tmp += '/'; | - |
| 336 | tmp += encodedProgramName; | - |
| 337 | path[k] = ::strdup(tmp.constData()); | - |
| 338 | } | - |
| 339 | } | - |
| 340 | } | - |
| 341 | } | - |
| 342 | | - |
| 343 | | - |
| 344 | pid_t childPid; | - |
| 345 | forkfd = ::forkfd(1, &childPid); | - |
| 346 | int lastForkErrno = (*__errno_location ()); | - |
| 347 | if (forkfd != (-2)) { | - |
| 348 | | - |
| 349 | | - |
| 350 | free(dupProgramName); | - |
| 351 | for (int i = 1; i <= arguments.count(); ++i) | - |
| 352 | free(argv[i]); | - |
| 353 | for (int i = 0; i < envc; ++i) | - |
| 354 | free(envp[i]); | - |
| 355 | for (int i = 0; i < pathc; ++i) | - |
| 356 | free(path[i]); | - |
| 357 | delete [] argv; | - |
| 358 | delete [] envp; | - |
| 359 | delete [] path; | - |
| 360 | } | - |
| 361 | | - |
| 362 | | - |
| 363 | | - |
| 364 | | - |
| 365 | | - |
| 366 | if (forkfd == -1) { | - |
| 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; | - |
| 376 | } | - |
| 377 | | - |
| 378 | | - |
| 379 | if (forkfd == (-2)) { | - |
| 380 | execChild(workingDirPtr, path, argv, envp); | - |
| 381 | ::_exit(-1); | - |
| 382 | } | - |
| 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) { | - |
| 392 | qt_safe_close(stdinChannel.pipe[0]); | - |
| 393 | stdinChannel.pipe[0] = -1; | - |
| 394 | } | - |
| 395 | | - |
| 396 | if (stdinChannel.pipe[1] != -1) | - |
| 397 | ::fcntl(stdinChannel.pipe[1], 4, ::fcntl(stdinChannel.pipe[1], 3) | 04000); | - |
| 398 | | - |
| 399 | if (stdoutChannel.pipe[1] != -1) { | - |
| 400 | qt_safe_close(stdoutChannel.pipe[1]); | - |
| 401 | stdoutChannel.pipe[1] = -1; | - |
| 402 | } | - |
| 403 | | - |
| 404 | if (stdoutChannel.pipe[0] != -1) | - |
| 405 | ::fcntl(stdoutChannel.pipe[0], 4, ::fcntl(stdoutChannel.pipe[0], 3) | 04000); | - |
| 406 | | - |
| 407 | if (stderrChannel.pipe[1] != -1) { | - |
| 408 | qt_safe_close(stderrChannel.pipe[1]); | - |
| 409 | stderrChannel.pipe[1] = -1; | - |
| 410 | } | - |
| 411 | if (stderrChannel.pipe[0] != -1) | - |
| 412 | ::fcntl(stderrChannel.pipe[0], 4, ::fcntl(stderrChannel.pipe[0], 3) | 04000); | - |
| 413 | | - |
| 414 | if (threadData->eventDispatcher) { | - |
| 415 | deathNotifier = new QSocketNotifier(forkfd, QSocketNotifier::Read, q); | - |
| 416 | QObject::connect(deathNotifier, qFlagLocation("2""activated(int)" "\0" __FILE__ ":" "498""546"), | - |
| 417 | q, qFlagLocation("1""_q_processDied()" "\0" __FILE__ ":" "499""547")); | - |
| 418 | } | - |
| 419 | } | - |
| 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 | QString errorconst char *msg = qt_error_stringstrerror((*__errno_location ())); | - |
| 486 | | - |
| 487 | | - |
| 488 | | - |
| 489 | qt_safe_write(childStartedPipe[1], error.data(), error.length() * sizeofcallthatfailed, strlen(QCharcallthatfailed)); | - |
| 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 | ushortchar buf[errorBufferMax]; | - |
| 498 | int i = 0; | - |
| 499 | int ret; | - |
| 500 | do { | - |
| 501 | ret = qt_safe_read(childStartedPipe[0], &bufbuf + 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((const QChar *)::fromLocal8Bit(buf, i/ sizeof(QChar)););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__,596657) : qt_noop()); | - |
| 528 | int nbytes = 0; | - |
| 529 | qint64 available = 0; | - |
| 530 | if (::ioctl(channel->pipe[0], 0x541B, (char *) &nbytes) >= 0) | - |
| 531 | available = (qint64) nbytes; | - |
| 532 | | - |
| 533 | | - |
| 534 | | - |
| 535 | return available; | - |
| 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__,609670) : qt_noop()); | - |
| 541 | qint64 bytesRead = qt_safe_read(channel->pipe[0], data, maxlen); | - |
| 542 | | - |
| 543 | | - |
| 544 | | - |
| 545 | | - |
| 546 | | - |
| 547 | | - |
| 548 | | - |
| 549 | if (bytesRead == -1 && (*__errno_location ()) == 11) | - |
| 550 | return -2; | - |
| 551 | return bytesRead; | - |
| 552 | } | - |
| 553 | | - |
| 554 | bool QProcessPrivate::writeToStdin() | - |
| 555 | { | - |
| 556 | const char *data = stdinChannel.bufferwriteBuffer.readPointer(); | - |
| 557 | const qint64 bytesToWrite = stdinChannel.bufferwriteBuffer.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 | stdinChannel.bufferwriteBuffer.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) | - |
| 592 | ::kill(pid_t(pid), 15); | - |
| 593 | } | - |
| 594 | | - |
| 595 | void QProcessPrivate::killProcess() | - |
| 596 | { | - |
| 597 | | - |
| 598 | | - |
| 599 | | - |
| 600 | if (pid) | - |
| 601 | ::kill(pid_t(pid), 9); | - |
| 602 | } | - |
| 603 | | - |
| 604 | bool QProcessPrivate::waitForStarted(int msecs) | - |
| { | |
| | |
| | |
| | |
| | |
| | |
| fd_set fds; | |
| do{ | |
| 606 | | - |
| 607 | | - |
| 608 | | - |
| 609 | | - |
| 610 | | - |
| 611 | int __d0, __d1; __asm__ __volatile__ ("cld; rep; " "stosq" : "=c" (__d0), "pollfd pfd = D" (__d1) : "a" (0), "0" (sizeof (fd_set) / sizeof (__fd_mask)), "1" (&((&fds)->fds_bits)[0]) : "memory"); } while (0); | - |
| ((void) (((&fds)->fds_bits)[((childStartedPipe[0]) / (8 * (int) sizeofqt_make_pollfd(__fd_mask)))] |= ((__fd_mask) 1 << ((childStartedPipe[0]) % (8 * (int) sizeof (__fd_mask))))));], 0x001); | |
| 612 | | - |
| 613 | if (qt_select_msecsqt_poll_msecs| 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
- ...
|
(childStartedPipe[0] + 1, &fds&pfd, 01, 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(;;) { | - |
| fd_set fdread; | |
| fd_set fdwrite; | |
| | |
| do { int __d0, __d1; __asm__ __volatile__ ("cld; rep; " "stosq" : "=c" (__d0), "=D" (__d1) : "a" (0), "0" (sizeof (fd_set) / sizeof (__fd_mask)), "1" (&((&fdread)->fds_bits)[0]) : "memory"); } while (0); | |
| do{ | |
| 638 | int __d0, __d1; __asm__ __volatile__ ("cld; rep; " "stosq" : "=c" (__d0), "=D" (__d1) : "a" (0), "0" (sizeof (fd_set) / sizeof (__fd_mask)), "1" (&((&fdwrite)->fds_bits)[0]) : "memory"); } while (0); | - |
| | |
| int nfds = forkfd; | |
| ((void) (((&fdread)->fds_bits)[((forkfd) / (8 * (int) sizeof (__fd_mask)))] |= ((__fd_mask) 1 << ((forkfd) % (8 * (int) sizeof (__fd_mask)))))); | |
| | |
| if (processState == QProcess::Starting) | |
| add_fd(nfds, childStartedPipe[0], &fdread); | |
| | |
| if (stdoutChannel.pipe[0] != -1) | |
| add_fd(nfds, stdoutChannel.pipe[0], &fdread); | |
| if (stderrChannel.pipe[0] != -1) | |
| add_fd(nfds, stderrChannel.pipe[0], &fdread); | |
| | |
| if (!stdinChannel.buffer.isEmpty() && stdinChannel.pipe[1] != -1) | |
| add_fd(nfds, stdinChannel.pipe[1], &fdwriteQProcessPoller poller(*this); | |
| 639 | | - |
| 640 | int timeout = qt_subtract_from_timeout(msecs, stopWatch.elapsed()); | - |
| 641 | int ret = qt_select_msecspoller.poll(nfds + 1, &fdread, &fdwrite,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 (childStartedPipe[0] != -1 && ((((&fdread)->fds_bits)[((childStartedPipe[0]) / (8 *(int) sizeofqt_pollfd_check| 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
|
(__fd_mask)))] & ((__fd_mask) 1 << ((poller.childStartedPipe[0]) % (8 * (int) sizeof (__fd_mask))))) != 0(), 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 (stdoutChannel.pipe[0] != -1 && ((((&fdread)->fds_bits)[((stdoutChannel.pipe[0]) / (8 *(int) sizeofqt_pollfd_check| 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
|
(__fd_mask)))] & ((__fd_mask) 1 << ((stdoutChannelpoller.pipe[0]) % (8 * (int) sizeof (__fd_mask))))) != 0stdoutPipe(), 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 (processChannelcurrentReadChannel| 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 |
== 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 (stderrChannel.pipe[0] != -1 && ((((&fdread)->fds_bits)[((stderrChannel.pipe[0]) / (8 *(int) sizeofqt_pollfd_check| 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
|
(__fd_mask)))] & ((__fd_mask) 1 << ((stderrChannelpoller.pipe[0]) % (8 * (int) sizeof (__fd_mask))))) != 0stderrPipe(), 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 (processChannelcurrentReadChannel| 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
|
== 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 (stdinChannel.pipe[1] != -1 && ((((&fdwrite)->fds_bits)[((stdinChannel.pipe[1]) / (8 *(int) sizeofqt_pollfd_check| 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
|
(__fd_mask)))] & ((__fd_mask) 1 << ((stdinChannelpoller.pipe[1]) % (8 * (int) sizeof (__fd_mask))))) != 0stdinPipe(), 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 (forkfd == -1 || ((((&fdread)->fds_bits)[((forkfd) / (8 *(int) sizeofqt_pollfd_check| 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
|
(__fd_mask)))] & ((__fd_mask) 1 << ((poller.forkfd) % (8 * (int) sizeof (__fd_mask))))) != 0(), 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 (!stdinChannel.bufferwriteBuffer.isEmpty()| TRUE | evaluated 3161 times by 2 testsEvaluated by:- tst_QProcess
- tst_qdbusxml2cpp
| | FALSE | evaluated 1 time by 1 test |
) { | 1-3161 |
| fd_set fdread; | |
| fd_set fdwrite; | |
| | |
| do { int __d0, __d1; __asm__ __volatile__ ("cld; rep; " "stosq" : "=c" (__d0), "=D" (__d1) : "a" (0), "0" (sizeof (fd_set) / sizeof (__fd_mask)), "1" (&((&fdread)->fds_bits)[0]) : "memory"); } while (0); | |
| do{ | |
| 691 | int __d0, __d1; __asm__ __volatile__ ("cld; rep; " "stosq" : "=c" (__d0), "=D" (__d1) : "a" (0), "0" (sizeof (fd_set) / sizeof (__fd_mask)), "1" (&((&fdwrite)->fds_bits)[0]) : "memory"); } while (0); | - |
| | |
| int nfds = forkfd; | |
| ((void) (((&fdread)->fds_bits)[((forkfd) / (8 * (int) sizeof (__fd_mask)))] |= ((__fd_mask) 1 << ((forkfd) % (8 * (int) sizeof (__fd_mask)))))); | |
| | |
| if (processState == QProcess::Starting) | |
| add_fd(nfds, childStartedPipe[0], &fdread); | |
| | |
| if (stdoutChannel.pipe[0] != -1) | |
| add_fd(nfds, stdoutChannel.pipe[0], &fdread); | |
| if (stderrChannel.pipe[0] != -1) | |
| add_fd(nfds, stderrChannel.pipe[0], &fdread); | |
| | |
| | |
| if (!stdinChannel.buffer.isEmpty() && stdinChannel.pipe[1] != -1) | |
| add_fd(nfds, stdinChannel.pipe[1], &fdwriteQProcessPoller poller(*this); | |
| 692 | | - |
| 693 | int timeout = qt_subtract_from_timeout(msecs, stopWatch.elapsed()); | - |
| 694 | int ret = qt_select_msecspoller.poll(nfds + 1, &fdread, &fdwrite,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 (childStartedPipe[0] != -1 && ((((&fdread)->fds_bits)[((childStartedPipe[0]) / (8 *(int) sizeofqt_pollfd_check| TRUE | never evaluated | | FALSE | evaluated 3161 times by 2 testsEvaluated by:- tst_QProcess
- tst_qdbusxml2cpp
|
(__fd_mask)))] & ((__fd_mask) 1 << ((poller.childStartedPipe[0]) % (8 * (int) sizeof (__fd_mask))))) != 0(), 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 (stdinChannel.pipe[1] != -1 && ((((&fdwrite)->fds_bits)[((stdinChannel.pipe[1]) / (8 *(int) sizeofqt_pollfd_check| TRUE | evaluated 3161 times by 2 testsEvaluated by:- tst_QProcess
- tst_qdbusxml2cpp
| | FALSE | never evaluated |
(__fd_mask)))] & ((__fd_mask) 1 << ((stdinChannelpoller.pipe[1]) % (8 * (int) sizeof (__fd_mask))))) != 0stdinPipe(), 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 (stdoutChannel.pipe[0] != -1 && ((((&fdread)->fds_bits)[((stdoutChannel.pipe[0]) / (8 *(int) sizeofqt_pollfd_check| TRUE | never evaluated | | FALSE | never evaluated |
(__fd_mask)))] & ((__fd_mask) 1 << ((stdoutChannelpoller.pipe[0]) % (8 * (int) sizeof (__fd_mask))))) != 0stdoutPipe(), 0x001)| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 714 | _q_canReadStandardOutput(); never executed: _q_canReadStandardOutput(); | 0 |
| 715 | | - |
| 716 | if (stderrChannel.pipe[0] != -1 && ((((&fdread)->fds_bits)[((stderrChannel.pipe[0]) / (8 *(int) sizeofqt_pollfd_check| TRUE | never evaluated | | FALSE | never evaluated |
(__fd_mask)))] & ((__fd_mask) 1 << ((stderrChannelpoller.pipe[0]) % (8 * (int) sizeof (__fd_mask))))) != 0stderrPipe(), 0x001)| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 717 | _q_canReadStandardError(); never executed: _q_canReadStandardError(); | 0 |
| 718 | | - |
| 719 | if (forkfd == -1 || ((((&fdread)->fds_bits)[((forkfd) / (8 *(int) sizeofqt_pollfd_check| TRUE | never evaluated | | FALSE | never evaluated |
(__fd_mask)))] & ((__fd_mask) 1 << ((poller.forkfd) % (8 * (int) sizeof (__fd_mask))))) != 0(), 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(;;) { | - |
| fd_set fdread; | |
| fd_set fdwrite; | |
| int nfds = -1; | |
| | |
| do { int __d0, __d1; __asm__ __volatile__ ("cld; rep; " "stosq" : "=c" (__d0), "=D" (__d1) : "a" (0), "0" (sizeof (fd_set) / sizeof (__fd_mask)), "1" (&((&fdread)->fds_bits)[0]) : "memory"); } while (0); | |
| do{ | |
| 738 | int __d0, __d1; __asm__ __volatile__ ("cld; rep; " "stosq" : "=c" (__d0), "=D" (__d1) : "a" (0), "0" (sizeof (fd_set) / sizeof (__fd_mask)), "1" (&((&fdwrite)->fds_bits)[0]) : "memory"); } while (0); | - |
| | |
| if (processState == QProcess::Starting) | |
| add_fd(nfds, childStartedPipe[0], &fdread); | |
| | |
| if (stdoutChannel.pipe[0] != -1) | |
| add_fd(nfds, stdoutChannel.pipe[0], &fdread); | |
| if (stderrChannel.pipe[0] != -1) | |
| add_fd(nfds, stderrChannel.pipe[0], &fdread); | |
| | |
| if (processState == QProcess::Running && forkfd != -1) | |
| add_fd(nfds, forkfd, &fdread); | |
| | |
| if (!stdinChannel.buffer.isEmpty() && stdinChannel.pipe[1] != -1) | |
| add_fd(nfds, stdinChannel.pipe[1], &fdwriteQProcessPoller poller(*this); | |
| 739 | | - |
| 740 | int timeout = qt_subtract_from_timeout(msecs, stopWatch.elapsed()); | - |
| 741 | int ret = qt_select_msecspoller.poll(nfds + 1, &fdread, &fdwrite,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 (childStartedPipe[0] != -1 && ((((&fdread)->fds_bits)[((childStartedPipe[0]) / (8 *(int) sizeofqt_pollfd_check| 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
- ...
|
(__fd_mask)))] & ((__fd_mask) 1 << ((poller.childStartedPipe[0]) % (8 * (int) sizeof (__fd_mask))))) != 0(), 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 (stdinChannel.pipe[1] != -1 && ((((&fdwrite)->fds_bits)[((stdinChannel.pipe[1]) / (8 *(int) sizeofqt_pollfd_check| 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
- ...
|
(__fd_mask)))] & ((__fd_mask) 1 << ((stdinChannelpoller.pipe[1]) % (8 * (int) sizeof (__fd_mask))))) != 0stdinPipe(), 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 (stdoutChannel.pipe[0] != -1 && ((((&fdread)->fds_bits)[((stdoutChannel.pipe[0]) / (8 *(int) sizeofqt_pollfd_check| 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
- ...
|
(__fd_mask)))] & ((__fd_mask) 1 << ((stdoutChannelpoller.pipe[0]) % (8 * (int) sizeof (__fd_mask))))) != 0stdoutPipe(), 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 (stderrChannel.pipe[0] != -1 && ((((&fdread)->fds_bits)[((stderrChannel.pipe[0]) / (8 *(int) sizeofqt_pollfd_check| 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
- ...
|
(__fd_mask)))] & ((__fd_mask) 1 << ((stderrChannelpoller.pipe[0]) % (8 * (int) sizeof (__fd_mask))))) != 0stderrPipe(), 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 (forkfd == -1 || ((((&fdread)->fds_bits)[((forkfd) / (8 *(int) sizeofqt_pollfd_check| 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
- ...
|
(__fd_mask)))] & ((__fd_mask) 1 << ((poller.forkfd) % (8 * (int) sizeof (__fd_mask))))) != 0(), 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 |
| } never executed: return false; | |
| | |
| bool QProcessPrivate::waitForWrite(int msecs) never executed: return false; | |
| { never executed: return false; | |
| fd_set fdwrite; never executed: return false; | |
| do { int __d0, __d1; __asm__ __volatile__ ("cld; rep; " "stosq" : "=c" (__d0), "=D" (__d1) : "a" (0), "0" (sizeof (fd_set) / sizeof (__fd_mask)), "1" (&((&fdwrite)->fds_bits)[0]) : "memory"); } while (0); never executed: return false; | |
| ((void) (((&fdwrite)->fds_bits)[((stdinChannel.pipe[1]) / (8 * (int) sizeof (__fd_mask)))] |= ((__fd_mask) 1 << ((stdinChannel.pipe[1]) % (8 * (int) sizeof (__fd_mask)))))); never executed: return false; | |
| return qt_select_msecs(stdinChannel.pipe[1] + 1, 0, &fdwrite, msecs < 0 ? 0 : msecs) == 1 never executed: return false; never executed: return false; ;never executed: return false; | |
| 770 | } | - |
| 771 | | - |
| 772 | void QProcessPrivate::findExitCode() | - |
| 773 | { | - |
| 774 | } | - |
| 775 | | - |
| 776 | bool QProcessPrivate::waitForDeadChild() | - |
| 777 | { | - |
| 778 | if (forkfd == -1) | - |
| 779 | return true; | - |
| 780 | | - |
| 781 | | - |
| 782 | forkfd_info info; | - |
| 783 | int ret; | - |
| 784 | do { ret = forkfd_wait(forkfd, &info, nullptr); } while (ret == -1 && (*__errno_location ()) == 4); | - |
| 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); } while (ret == -1 && (*__errno_location ()) == 4); | - |
| 793 | forkfd = -1; | - |
| 794 | | - |
| 795 | | - |
| 796 | | - |
| 797 | | - |
| 798 | | - |
| 799 | return true; | - |
| 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) | - |
| 809 | return false; | - |
| 810 | | - |
| 811 | int pidPipe[2]; | - |
| 812 | if (qt_safe_pipe(pidPipe) != 0) { | - |
| 813 | qt_safe_close(startedPipe[0]); | - |
| 814 | qt_safe_close(startedPipe[1]); | - |
| 815 | return false; | - |
| 816 | } | - |
| 817 | | - |
| 818 | pid_t childPid = fork(); | - |
| 819 | if (childPid == 0) { | - |
| 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) { | - |
| 832 | qt_safe_close(pidPipe[1]); | - |
| 833 | | - |
| 834 | if (!encodedWorkingDirectory.isEmpty()) { | - |
| 835 | if (::chdir(encodedWorkingDirectory.constData()) == -1) | - |
| 836 | QMessageLogger(__FILE__, 1002966, __PRETTY_FUNCTION__).warning("QProcessPrivate::startDetached: failed to chdir to %s", encodedWorkingDirectory.constData()); | - |
| 837 | } | - |
| 838 | | - |
| 839 | char **argv = new char *[arguments.size() + 2]; | - |
| 840 | for (int i = 0; i < arguments.size(); ++i) | - |
| 841 | argv[i + 1] = ::strdup(QFile::encodeName(arguments.at(i)).constData()); | - |
| 842 | argv[arguments.size() + 1] = 0; | - |
| 843 | | - |
| 844 | if (!program.contains(QLatin1Char('/'))) { | - |
| 845 | const QString path = QString::fromLocal8Bit(qgetenv("PATH")); | - |
| 846 | if (!path.isEmpty()) { | - |
| 847 | QStringList pathEntries = path.split(QLatin1Char(':')); | - |
| 848 | for (int k = 0; k < pathEntries.size(); ++k) { | - |
| 849 | QByteArray tmp = QFile::encodeName(pathEntries.at(k)); | - |
| 850 | if (!tmp.endsWith('/')) tmp += '/'; | - |
| 851 | tmp += QFile::encodeName(program); | - |
| 852 | argv[0] = tmp.data(); | - |
| 853 | qt_safe_execv(argv[0], argv); | - |
| 854 | } | - |
| 855 | } | - |
| 856 | } else { | - |
| 857 | QByteArray tmp = QFile::encodeName(program); | - |
| 858 | argv[0] = tmp.data(); | - |
| 859 | qt_safe_execv(argv[0], argv); | - |
| 860 | } | - |
| 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 | } else if (doubleForkPid == -1) { | - |
| 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 | } | - |
| 882 | | - |
| 883 | qt_safe_close(startedPipe[1]); | - |
| 884 | qt_safe_write(pidPipe[1], (const char *)&doubleForkPid, sizeof(pid_t)); | - |
| 885 | if (::chdir("/") == -1) | - |
| 886 | QMessageLogger(__FILE__, 10521016, __PRETTY_FUNCTION__).warning("QProcessPrivate::startDetached: failed to chdir to /"); | - |
| 887 | ::_exit(1); | - |
| 888 | } | - |
| 889 | | - |
| 890 | qt_safe_close(startedPipe[1]); | - |
| 891 | qt_safe_close(pidPipe[1]); | - |
| 892 | | - |
| 893 | if (childPid == -1) { | - |
| 894 | qt_safe_close(startedPipe[0]); | - |
| 895 | qt_safe_close(pidPipe[0]); | - |
| 896 | return false; | - |
| 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 && reply == '\0'); | - |
| 905 | if (success && pid) { | - |
| 906 | pid_t actualPid = 0; | - |
| 907 | if (qt_safe_read(pidPipe[0], (char *)&actualPid, sizeof(pid_t)) == sizeof(pid_t)) { | - |
| 908 | *pid = actualPid; | - |
| 909 | } else { | - |
| 910 | *pid = 0; | - |
| 911 | } | - |
| 912 | } | - |
| 913 | qt_safe_close(pidPipe[0]); | - |
| 914 | return success; | - |
| 915 | } | - |
| 916 | | - |
| 917 | | - |
| | |