qprocess_unix.cpp

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

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9