qprocess.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/io/qprocess.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11QStringList QProcessEnvironmentPrivate::toList() const-
12{-
13 QStringList result;-
14 result.reserve(hash.size());-
15 for (Hash::const_iterator it = hash.cbegin(), end = hash.cend(); it != end
it != endDescription
TRUEevaluated 16172 times by 2 tests
Evaluated by:
  • tst_QProcessEnvironment
  • tst_Selftests
FALSEevaluated 2290 times by 2 tests
Evaluated by:
  • tst_QProcessEnvironment
  • tst_Selftests
; ++it)
2290-16172
16 result << nameToString(it.key()) + QLatin1Char('=') + valueToString(it.value());
executed 16172 times by 2 tests: result << nameToString(it.key()) + QLatin1Char('=') + valueToString(it.value());
Executed by:
  • tst_QProcessEnvironment
  • tst_Selftests
16172
17 return
executed 2290 times by 2 tests: return result;
Executed by:
  • tst_QProcessEnvironment
  • tst_Selftests
result;
executed 2290 times by 2 tests: return result;
Executed by:
  • tst_QProcessEnvironment
  • tst_Selftests
2290
18}-
19-
20QProcessEnvironment QProcessEnvironmentPrivate::fromList(const QStringList &list)-
21{-
22 QProcessEnvironment env;-
23 QStringList::ConstIterator it = list.constBegin(),-
24 end = list.constEnd();-
25 for ( ; it != end
it != endDescription
TRUEevaluated 4176 times by 4 tests
Evaluated by:
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qmake
  • tst_qmessagehandler
FALSEevaluated 137 times by 4 tests
Evaluated by:
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qmake
  • tst_qmessagehandler
; ++it) {
137-4176
26 int pos = it->indexOf(QLatin1Char('='), 1);-
27 if (pos < 1
pos < 1Description
TRUEnever evaluated
FALSEevaluated 4176 times by 4 tests
Evaluated by:
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qmake
  • tst_qmessagehandler
)
0-4176
28 continue;
never executed: continue;
0
29-
30 QString value = it->mid(pos + 1);-
31 QString name = *it;-
32 name.truncate(pos);-
33 env.insert(name, value);-
34 }
executed 4176 times by 4 tests: end of block
Executed by:
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qmake
  • tst_qmessagehandler
4176
35 return
executed 137 times by 4 tests: return env;
Executed by:
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qmake
  • tst_qmessagehandler
env;
executed 137 times by 4 tests: return env;
Executed by:
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qmake
  • tst_qmessagehandler
137
36}-
37-
38QStringList QProcessEnvironmentPrivate::keys() const-
39{-
40 QStringList result;-
41 result.reserve(hash.size());-
42 Hash::ConstIterator it = hash.constBegin(),-
43 end = hash.constEnd();-
44 for ( ; it != end
it != endDescription
TRUEevaluated 41 times by 2 tests
Evaluated by:
  • tst_QProcessEnvironment
  • tst_Selftests
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QProcessEnvironment
  • tst_Selftests
; ++it)
5-41
45 result << nameToString(it.key());
executed 41 times by 2 tests: result << nameToString(it.key());
Executed by:
  • tst_QProcessEnvironment
  • tst_Selftests
41
46 return
executed 5 times by 2 tests: return result;
Executed by:
  • tst_QProcessEnvironment
  • tst_Selftests
result;
executed 5 times by 2 tests: return result;
Executed by:
  • tst_QProcessEnvironment
  • tst_Selftests
5
47}-
48-
49void QProcessEnvironmentPrivate::insert(const QProcessEnvironmentPrivate &other)-
50{-
51 Hash::ConstIterator it = other.hash.constBegin(),-
52 end = other.hash.constEnd();-
53 for ( ; it != end
it != endDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QProcessEnvironment
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QProcessEnvironment
; ++it)
2-6
54 hash.insert(it.key(), it.value());
executed 6 times by 1 test: hash.insert(it.key(), it.value());
Executed by:
  • tst_QProcessEnvironment
6
55-
56-
57 QHash<QString, Key>::ConstIterator nit = other.nameMap.constBegin(),-
58 nend = other.nameMap.constEnd();-
59 for ( ; nit != nend
nit != nendDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QProcessEnvironment
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QProcessEnvironment
; ++nit)
2-6
60 nameMap.insert(nit.key(), nit.value());
executed 6 times by 1 test: nameMap.insert(nit.key(), nit.value());
Executed by:
  • tst_QProcessEnvironment
6
61-
62}
executed 2 times by 1 test: end of block
Executed by:
  • tst_QProcessEnvironment
2
63-
64-
65-
66-
67-
68-
69QProcessEnvironment::QProcessEnvironment()-
70 : d(0)-
71{-
72}
executed 2787 times by 36 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcessEnvironment
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • ...
2787
73-
74-
75-
76-
77QProcessEnvironment::~QProcessEnvironment()-
78{-
79}-
80-
81-
82-
83-
84QProcessEnvironment::QProcessEnvironment(const QProcessEnvironment &other)-
85 : d(other.d)-
86{-
87}
executed 789 times by 1 test: end of block
Executed by:
  • tst_Selftests
789
88-
89-
90-
91-
92-
93QProcessEnvironment &QProcessEnvironment::operator=(const QProcessEnvironment &other)-
94{-
95 d = other.d;-
96 return
executed 1281 times by 6 tests: return *this;
Executed by:
  • tst_QProcess
  • tst_QSharedPointer
  • tst_Selftests
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
*this;
executed 1281 times by 6 tests: return *this;
Executed by:
  • tst_QProcess
  • tst_QSharedPointer
  • tst_Selftests
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
1281
97}-
98bool QProcessEnvironment::operator==(const QProcessEnvironment &other) const-
99{-
100 if (d == other.d
d == other.dDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QProcessEnvironment
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QProcessEnvironment
)
3-6
101 return
executed 3 times by 1 test: return true;
Executed by:
  • tst_QProcessEnvironment
true;
executed 3 times by 1 test: return true;
Executed by:
  • tst_QProcessEnvironment
3
102 if (d
dDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QProcessEnvironment
FALSEnever evaluated
) {
0-6
103 if (other.d
other.dDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QProcessEnvironment
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcessEnvironment
) {
1-5
104 QProcessEnvironmentPrivate::OrderedMutexLocker locker(d, other.d);-
105 return
executed 5 times by 1 test: return d->hash == other.d->hash;
Executed by:
  • tst_QProcessEnvironment
d->hash == other.d->hash;
executed 5 times by 1 test: return d->hash == other.d->hash;
Executed by:
  • tst_QProcessEnvironment
5
106 } else {-
107 return
executed 1 time by 1 test: return isEmpty();
Executed by:
  • tst_QProcessEnvironment
isEmpty();
executed 1 time by 1 test: return isEmpty();
Executed by:
  • tst_QProcessEnvironment
1
108 }-
109 } else {-
110 return
never executed: return other.isEmpty();
other.isEmpty();
never executed: return other.isEmpty();
0
111 }-
112}-
113-
114-
115-
116-
117-
118-
119-
120bool QProcessEnvironment::isEmpty() const-
121{-
122-
123 return
executed 800 times by 4 tests: return d ? d->hash.isEmpty() : true;
Executed by:
  • tst_QProcess
  • tst_QProcessEnvironment
  • tst_Selftests
  • tst_qmakelib
d ? d->hash.isEmpty() : true;
executed 800 times by 4 tests: return d ? d->hash.isEmpty() : true;
Executed by:
  • tst_QProcess
  • tst_QProcessEnvironment
  • tst_Selftests
  • tst_qmakelib
800
124}-
125-
126-
127-
128-
129-
130-
131-
132void QProcessEnvironment::clear()-
133{-
134 if (d
dDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QProcessEnvironment
FALSEnever evaluated
)
0-7
135 d->hash.clear();
executed 7 times by 1 test: d->hash.clear();
Executed by:
  • tst_QProcessEnvironment
7
136-
137-
138}
executed 7 times by 1 test: end of block
Executed by:
  • tst_QProcessEnvironment
7
139bool QProcessEnvironment::contains(const QString &name) const-
140{-
141 if (!d
!dDescription
TRUEnever evaluated
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_QProcess
  • tst_QProcessEnvironment
)
0-14
142 return
never executed: return false;
false;
never executed: return false;
0
143 QProcessEnvironmentPrivate::MutexLocker locker(d);-
144 return
executed 14 times by 2 tests: return d->hash.contains(d->prepareName(name));
Executed by:
  • tst_QProcess
  • tst_QProcessEnvironment
d->hash.contains(d->prepareName(name));
executed 14 times by 2 tests: return d->hash.contains(d->prepareName(name));
Executed by:
  • tst_QProcess
  • tst_QProcessEnvironment
14
145}-
146void QProcessEnvironment::insert(const QString &name, const QString &value)-
147{-
148-
149 d.detach();-
150 d->hash.insert(d->prepareName(name), d->prepareValue(value));-
151}
executed 4296 times by 7 tests: end of block
Executed by:
  • tst_QProcess
  • tst_QProcessEnvironment
  • tst_QSharedPointer
  • tst_Selftests
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
4296
152void QProcessEnvironment::remove(const QString &name)-
153{-
154 if (d
dDescription
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QProcess
  • tst_QProcessEnvironment
FALSEnever evaluated
) {
0-3
155 d.detach();-
156 d->hash.remove(d->prepareName(name));-
157 }
executed 3 times by 2 tests: end of block
Executed by:
  • tst_QProcess
  • tst_QProcessEnvironment
3
158}
executed 3 times by 2 tests: end of block
Executed by:
  • tst_QProcess
  • tst_QProcessEnvironment
3
159QString QProcessEnvironment::value(const QString &name, const QString &defaultValue) const-
160{-
161 if (!d
!dDescription
TRUEnever evaluated
FALSEevaluated 38 times by 3 tests
Evaluated by:
  • tst_QProcessEnvironment
  • tst_Selftests
  • tst_qmakelib
)
0-38
162 return
never executed: return defaultValue;
defaultValue;
never executed: return defaultValue;
0
163-
164 QProcessEnvironmentPrivate::MutexLocker locker(d);-
165 QProcessEnvironmentPrivate::Hash::ConstIterator it = d->hash.constFind(d->prepareName(name));-
166 if (it == d->hash.constEnd()
it == d->hash.constEnd()Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QProcessEnvironment
  • tst_qmakelib
FALSEevaluated 28 times by 3 tests
Evaluated by:
  • tst_QProcessEnvironment
  • tst_Selftests
  • tst_qmakelib
)
10-28
167 return
executed 10 times by 2 tests: return defaultValue;
Executed by:
  • tst_QProcessEnvironment
  • tst_qmakelib
defaultValue;
executed 10 times by 2 tests: return defaultValue;
Executed by:
  • tst_QProcessEnvironment
  • tst_qmakelib
10
168-
169 return
executed 28 times by 3 tests: return d->valueToString(it.value());
Executed by:
  • tst_QProcessEnvironment
  • tst_Selftests
  • tst_qmakelib
d->valueToString(it.value());
executed 28 times by 3 tests: return d->valueToString(it.value());
Executed by:
  • tst_QProcessEnvironment
  • tst_Selftests
  • tst_qmakelib
28
170}-
171QStringList QProcessEnvironment::toStringList() const-
172{-
173 if (!d
!dDescription
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QProcess
  • tst_QProcessEnvironment
FALSEevaluated 2290 times by 2 tests
Evaluated by:
  • tst_QProcessEnvironment
  • tst_Selftests
)
2-2290
174 return
executed 2 times by 2 tests: return QStringList();
Executed by:
  • tst_QProcess
  • tst_QProcessEnvironment
QStringList();
executed 2 times by 2 tests: return QStringList();
Executed by:
  • tst_QProcess
  • tst_QProcessEnvironment
2
175 QProcessEnvironmentPrivate::MutexLocker locker(d);-
176 return
executed 2290 times by 2 tests: return d->toList();
Executed by:
  • tst_QProcessEnvironment
  • tst_Selftests
d->toList();
executed 2290 times by 2 tests: return d->toList();
Executed by:
  • tst_QProcessEnvironment
  • tst_Selftests
2290
177}-
178-
179-
180-
181-
182-
183-
184-
185QStringList QProcessEnvironment::keys() const-
186{-
187 if (!d
!dDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcessEnvironment
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QProcessEnvironment
  • tst_Selftests
)
1-5
188 return
executed 1 time by 1 test: return QStringList();
Executed by:
  • tst_QProcessEnvironment
QStringList();
executed 1 time by 1 test: return QStringList();
Executed by:
  • tst_QProcessEnvironment
1
189 QProcessEnvironmentPrivate::MutexLocker locker(d);-
190 return
executed 5 times by 2 tests: return d->keys();
Executed by:
  • tst_QProcessEnvironment
  • tst_Selftests
d->keys();
executed 5 times by 2 tests: return d->keys();
Executed by:
  • tst_QProcessEnvironment
  • tst_Selftests
5
191}-
192void QProcessEnvironment::insert(const QProcessEnvironment &e)-
193{-
194 if (!e.d
!e.dDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QProcessEnvironment
)
0-2
195 return;
never executed: return;
0
196-
197-
198 QProcessEnvironmentPrivate::MutexLocker locker(e.d);-
199 d->insert(*e.d);-
200}
executed 2 times by 1 test: end of block
Executed by:
  • tst_QProcessEnvironment
2
201-
202void QProcessPrivate::Channel::clear()-
203{-
204 switch (type) {-
205 case
executed 3 times by 1 test: case PipeSource:
Executed by:
  • tst_QProcess
PipeSource:
executed 3 times by 1 test: case PipeSource:
Executed by:
  • tst_QProcess
3
206 ((!(process)) ? qt_assert("process",__FILE__,440) : qt_noop());-
207 process->stdinChannel.type = Normal;-
208 process->stdinChannel.process = 0;-
209 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QProcess
3
210 case
never executed: case PipeSink:
PipeSink:
never executed: case PipeSink:
0
211 ((!(process)) ? qt_assert("process",__FILE__,445) : qt_noop());-
212 process->stdoutChannel.type = Normal;-
213 process->stdoutChannel.process = 0;-
214 break;
never executed: break;
0
215 }-
216-
217 type = Normal;-
218 file.clear();-
219 process = 0;-
220}
executed 21 times by 1 test: end of block
Executed by:
  • tst_QProcess
21
221QProcessPrivate::QProcessPrivate()-
222{-
223 readBufferChunkSize = 4096;-
224 writeBufferChunkSize = 4096;-
225 processChannelMode = QProcess::SeparateChannels;-
226 inputChannelMode = QProcess::ManagedInputChannel;-
227 processError = QProcess::UnknownError;-
228 processState = QProcess::NotRunning;-
229 pid = 0;-
230 sequenceNumber = 0;-
231 exitCode = 0;-
232 exitStatus = QProcess::NormalExit;-
233 startupSocketNotifier = 0;-
234 deathNotifier = 0;-
235 childStartedPipe[0] = -1;-
236 childStartedPipe[1] = -1;-
237 forkfd = -1;-
238 crashed = false;-
239 dying = false;-
240 emittedReadyRead = false;-
241 emittedBytesWritten = false;-
242-
243-
244-
245-
246}
executed 2280 times by 35 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • ...
2280
247-
248-
249-
250-
251QProcessPrivate::~QProcessPrivate()-
252{-
253 if (stdinChannel.process
stdinChannel.processDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 2281 times by 40 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • ...
)
3-2281
254 stdinChannel.process->stdoutChannel.clear();
executed 3 times by 1 test: stdinChannel.process->stdoutChannel.clear();
Executed by:
  • tst_QProcess
3
255 if (stdoutChannel.process
stdoutChannel.processDescription
TRUEnever evaluated
FALSEevaluated 2284 times by 40 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • ...
)
0-2284
256 stdoutChannel.process->stdinChannel.clear();
never executed: stdoutChannel.process->stdinChannel.clear();
0
257}
executed 2284 times by 40 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • ...
2284
258-
259-
260-
261-
262void QProcessPrivate::cleanup()-
263{-
264 q_func()->setProcessState(QProcess::NotRunning);-
265 pid = 0;-
266 sequenceNumber = 0;-
267 dying = false;-
268-
269 if (stdoutChannel.notifier
stdoutChannel.notifierDescription
TRUEevaluated 2932 times by 37 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_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • ...
FALSEevaluated 2375 times by 40 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • ...
) {
2375-2932
270 delete stdoutChannel.notifier;-
271 stdoutChannel.notifier = 0;-
272 }
executed 2932 times by 37 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_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • ...
2932
273 if (stderrChannel.notifier
stderrChannel.notifierDescription
TRUEevaluated 2921 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_QIcon
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • ...
FALSEevaluated 2386 times by 40 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • ...
) {
2386-2921
274 delete stderrChannel.notifier;-
275 stderrChannel.notifier = 0;-
276 }
executed 2921 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_QIcon
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • ...
2921
277 if (stdinChannel.notifier
stdinChannel.notifierDescription
TRUEevaluated 2308 times by 34 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_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • 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 2999 times by 40 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • ...
) {
2308-2999
278 delete stdinChannel.notifier;-
279 stdinChannel.notifier = 0;-
280 }
executed 2308 times by 34 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_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • ...
2308
281 if (startupSocketNotifier
startupSocketNotifierDescription
TRUEnever evaluated
FALSEevaluated 5307 times by 44 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_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • ...
) {
0-5307
282 delete startupSocketNotifier;-
283 startupSocketNotifier = 0;-
284 }
never executed: end of block
0
285 if (deathNotifier
deathNotifierDescription
TRUEnever evaluated
FALSEevaluated 5307 times by 44 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_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • ...
) {
0-5307
286 delete deathNotifier;-
287 deathNotifier = 0;-
288 }
never executed: end of block
0
289 closeChannel(&stdoutChannel);-
290 closeChannel(&stderrChannel);-
291 closeChannel(&stdinChannel);-
292 destroyPipe(childStartedPipe);-
293-
294 if (forkfd != -1
forkfd != -1Description
TRUEnever evaluated
FALSEevaluated 5307 times by 44 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_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • ...
)
0-5307
295 qt_safe_close(forkfd);
never executed: qt_safe_close(forkfd);
0
296 forkfd = -1;-
297-
298}
executed 5307 times by 44 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_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • ...
5307
299-
300-
301-
302-
303void QProcessPrivate::setError(QProcess::ProcessError error, const QString &description)-
304{-
305 processError = error;-
306 if (description.isEmpty()
description.isEmpty()Description
TRUEevaluated 119 times by 6 tests
Evaluated by:
  • tst_QNetworkSession
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSystemSemaphore
  • tst_Selftests
FALSEevaluated 710 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
) {
119-710
307 switch (error) {-
308 case
never executed: case QProcess::FailedToStart:
QProcess::FailedToStart:
never executed: case QProcess::FailedToStart:
0
309 errorString = QProcess::tr("Process failed to start");-
310 break;
never executed: break;
0
311 case
executed 103 times by 5 tests: case QProcess::Crashed:
Executed by:
  • tst_QNetworkSession
  • tst_QProcess
  • tst_QSharedMemory
  • tst_QSystemSemaphore
  • tst_Selftests
QProcess::Crashed:
executed 103 times by 5 tests: case QProcess::Crashed:
Executed by:
  • tst_QNetworkSession
  • tst_QProcess
  • tst_QSharedMemory
  • tst_QSystemSemaphore
  • tst_Selftests
103
312 errorString = QProcess::tr("Process crashed");-
313 break;
executed 103 times by 5 tests: break;
Executed by:
  • tst_QNetworkSession
  • tst_QProcess
  • tst_QSharedMemory
  • tst_QSystemSemaphore
  • tst_Selftests
103
314 case
executed 11 times by 3 tests: case QProcess::Timedout:
Executed by:
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSystemSemaphore
QProcess::Timedout:
executed 11 times by 3 tests: case QProcess::Timedout:
Executed by:
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSystemSemaphore
11
315 errorString = QProcess::tr("Process operation timed out");-
316 break;
executed 11 times by 3 tests: break;
Executed by:
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSystemSemaphore
11
317 case
never executed: case QProcess::ReadError:
QProcess::ReadError:
never executed: case QProcess::ReadError:
0
318 errorString = QProcess::tr("Error reading from process");-
319 break;
never executed: break;
0
320 case
executed 5 times by 1 test: case QProcess::WriteError:
Executed by:
  • tst_QProcess
QProcess::WriteError:
executed 5 times by 1 test: case QProcess::WriteError:
Executed by:
  • tst_QProcess
5
321 errorString = QProcess::tr("Error writing to process");-
322 break;
executed 5 times by 1 test: break;
Executed by:
  • tst_QProcess
5
323 case
never executed: case QProcess::UnknownError:
QProcess::UnknownError:
never executed: case QProcess::UnknownError:
0
324 errorString.clear();-
325 break;
never executed: break;
0
326 }-
327 }
executed 119 times by 6 tests: end of block
Executed by:
  • tst_QNetworkSession
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSystemSemaphore
  • tst_Selftests
else {
119
328 errorString = description;-
329 }
executed 710 times by 11 tests: end of block
Executed by:
  • tst_QCommandLineParser
  • tst_QFile
  • tst_QLockFile
  • tst_QProcess
  • tst_QSharedPointer
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
710
330}-
331-
332-
333-
334-
335void QProcessPrivate::setErrorAndEmit(QProcess::ProcessError error, const QString &description)-
336{-
337 QProcess * const q = q_func();-
338 ((!(error != QProcess::UnknownError)) ? qt_assert("error != QProcess::UnknownError",__FILE__,996) : qt_noop());-
339 setError(error, description);-
340 q->errorOccurred(processError);-
341 q->error(processError);-
342}
executed 818 times by 15 tests: end of block
Executed by:
  • tst_QCommandLineParser
  • tst_QFile
  • tst_QLockFile
  • tst_QNetworkSession
  • tst_QProcess
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_Selftests
818
343-
344-
345-
346-
347-
348bool QProcessPrivate::tryReadFromChannel(Channel *channel)-
349{-
350 QProcess * const q = q_func();-
351 if (channel->pipe[0] == -1
channel->pipe[0] == -1Description
TRUEevaluated 4635 times by 30 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_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
FALSEevaluated 37468 times by 30 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_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
)
4635-37468
352 return
executed 4635 times by 30 tests: return false;
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
false;
executed 4635 times by 30 tests: return false;
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
4635
353-
354 qint64 available = bytesAvailableInChannel(channel);-
355 if (available == 0
available == 0Description
TRUEevaluated 4607 times by 30 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_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
FALSEevaluated 32861 times by 26 tests
Evaluated by:
  • tst_Lancelot
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • ...
)
4607-32861
356 available = 1;
executed 4607 times by 30 tests: available = 1;
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_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
  • ...
4607
357-
358 QProcess::ProcessChannel channelIdx = (channel == &stdoutChannel
channel == &stdoutChannelDescription
TRUEevaluated 34371 times by 30 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_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
FALSEevaluated 3097 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_QIcon
  • 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
  • ...
3097-34371
359 ? QProcess::StandardOutput-
360 : QProcess::StandardError);-
361 ((!(readBuffers.size() > int(channelIdx))) ? qt_assert("readBuffers.size() > int(channelIdx)",__FILE__,1019) : qt_noop());-
362 QRingBuffer &readBuffer = readBuffers[int(channelIdx)];-
363 char *ptr = readBuffer.reserve(available);-
364 qint64 readBytes = readFromChannel(channel, ptr, available);-
365 if (readBytes <= 0
readBytes <= 0Description
TRUEevaluated 4607 times by 30 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_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
FALSEevaluated 32861 times by 26 tests
Evaluated by:
  • tst_Lancelot
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • ...
)
4607-32861
366 readBuffer.chop(available);
executed 4607 times by 30 tests: readBuffer.chop(available);
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
4607
367 if (readBytes == -2
readBytes == -2Description
TRUEnever evaluated
FALSEevaluated 37468 times by 30 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_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
) {
0-37468
368-
369 return
never executed: return false;
false;
never executed: return false;
0
370 }-
371 if (readBytes == -1
readBytes == -1Description
TRUEnever evaluated
FALSEevaluated 37468 times by 30 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_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
) {
0-37468
372 setErrorAndEmit(QProcess::ReadError);-
373-
374-
375-
376 return
never executed: return false;
false;
never executed: return false;
0
377 }-
378 if (readBytes == 0
readBytes == 0Description
TRUEevaluated 4607 times by 30 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_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
FALSEevaluated 32861 times by 26 tests
Evaluated by:
  • tst_Lancelot
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • ...
) {
4607-32861
379-
380 if (channel->notifier
channel->notifierDescription
TRUEevaluated 4445 times by 28 tests
Evaluated by:
  • tst_Lancelot
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • ...
FALSEevaluated 162 times by 2 tests
Evaluated by:
  • tst_QApplication
  • tst_qdbuscpp2xml
)
162-4445
381 channel->notifier->setEnabled(false);
executed 4445 times by 28 tests: channel->notifier->setEnabled(false);
Executed by:
  • tst_Lancelot
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • ...
4445
382 closeChannel(channel);-
383-
384-
385-
386 return
executed 4607 times by 30 tests: return false;
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
false;
executed 4607 times by 30 tests: return false;
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
4607
387 }-
388-
389-
390-
391-
392-
393 if (channel->closed
channel->closedDescription
TRUEevaluated 40 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 32821 times by 26 tests
Evaluated by:
  • tst_Lancelot
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • ...
) {
40-32821
394 readBuffer.chop(readBytes);-
395 return
executed 40 times by 1 test: return false;
Executed by:
  • tst_QProcess
false;
executed 40 times by 1 test: return false;
Executed by:
  • tst_QProcess
40
396 }-
397-
398 readBuffer.chop(available - readBytes);-
399-
400 bool didRead = false;-
401 if (readBytes == 0
readBytes == 0Description
TRUEnever evaluated
FALSEevaluated 32821 times by 26 tests
Evaluated by:
  • tst_Lancelot
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • ...
) {
0-32821
402 if (channel->notifier
channel->notifierDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
403 channel->notifier->setEnabled(false);
never executed: channel->notifier->setEnabled(false);
0
404 }
never executed: end of block
else if (currentReadChannel == channelIdx
currentReadCha... == channelIdxDescription
TRUEevaluated 31666 times by 22 tests
Evaluated by:
  • tst_Lancelot
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QFont
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • 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
FALSEevaluated 1155 times by 11 tests
Evaluated by:
  • tst_Lancelot
  • tst_QIcon
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QSharedPointer
  • tst_Selftests
  • tst_qmake
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_uic
) {
0-31666
405 didRead = true;-
406 if (!emittedReadyRead
!emittedReadyReadDescription
TRUEevaluated 31665 times by 22 tests
Evaluated by:
  • tst_Lancelot
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QFont
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • 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
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcess
) {
1-31665
407 emittedReadyRead = true;-
408 q->readyRead();-
409 emittedReadyRead = false;-
410 }
executed 31665 times by 22 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QFont
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • 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
31665
411 }
executed 31666 times by 22 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QFont
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • 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
31666
412 q->channelReadyRead(int(channelIdx));-
413 if (channelIdx == QProcess::StandardOutput
channelIdx == ...StandardOutputDescription
TRUEevaluated 32042 times by 22 tests
Evaluated by:
  • tst_Lancelot
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QFont
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • 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
FALSEevaluated 779 times by 11 tests
Evaluated by:
  • tst_Lancelot
  • tst_QIcon
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QSharedPointer
  • tst_Selftests
  • tst_qmake
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_uic
)
779-32042
414 q->readyReadStandardOutput(QProcess::QPrivateSignal());
executed 32042 times by 22 tests: q->readyReadStandardOutput(QProcess::QPrivateSignal());
Executed by:
  • tst_Lancelot
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QFont
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • 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
32042
415 else-
416 q->readyReadStandardError(QProcess::QPrivateSignal());
executed 779 times by 11 tests: q->readyReadStandardError(QProcess::QPrivateSignal());
Executed by:
  • tst_Lancelot
  • tst_QIcon
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QSharedPointer
  • tst_Selftests
  • tst_qmake
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_uic
779
417 return
executed 32821 times by 26 tests: return didRead;
Executed by:
  • tst_Lancelot
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • ...
didRead;
executed 32821 times by 26 tests: return didRead;
Executed by:
  • tst_Lancelot
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • ...
32821
418}-
419-
420-
421-
422-
423bool QProcessPrivate::_q_canReadStandardOutput()-
424{-
425 return
executed 36690 times by 30 tests: return tryReadFromChannel(&stdoutChannel);
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
tryReadFromChannel(&stdoutChannel);
executed 36690 times by 30 tests: return tryReadFromChannel(&stdoutChannel);
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
36690
426}-
427-
428-
429-
430-
431bool QProcessPrivate::_q_canReadStandardError()-
432{-
433 return
executed 5413 times by 30 tests: return tryReadFromChannel(&stderrChannel);
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
tryReadFromChannel(&stderrChannel);
executed 5413 times by 30 tests: return tryReadFromChannel(&stderrChannel);
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
5413
434}-
435-
436-
437-
438-
439bool QProcessPrivate::_q_canWrite()-
440{-
441 if (stdinChannel.notifier
stdinChannel.notifierDescription
TRUEevaluated 3630 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-3630
442 stdinChannel.notifier->setEnabled(false);
executed 3630 times by 6 tests: stdinChannel.notifier->setEnabled(false);
Executed by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QTextStream
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
3630
443-
444 if (writeBuffer.isEmpty()
writeBuffer.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 3630 times by 6 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QTextStream
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
) {
0-3630
445-
446-
447-
448 return
never executed: return false;
false;
never executed: return false;
0
449 }-
450-
451 const bool writeSucceeded = writeToStdin();-
452-
453 if (stdinChannel.notifier
stdinChannel.notifierDescription
TRUEevaluated 3630 times by 6 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QTextStream
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
FALSEnever evaluated
&& !writeBuffer.isEmpty()
!writeBuffer.isEmpty()Description
TRUEevaluated 2715 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QProcess
FALSEevaluated 915 times by 6 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QTextStream
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
)
0-3630
454 stdinChannel.notifier->setEnabled(true);
executed 2715 times by 2 tests: stdinChannel.notifier->setEnabled(true);
Executed by:
  • tst_QNetworkReply
  • tst_QProcess
2715
455 if (writeBuffer.isEmpty()
writeBuffer.isEmpty()Description
TRUEevaluated 915 times by 6 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QTextStream
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
FALSEevaluated 2715 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QProcess
&& stdinChannel.closed
stdinChannel.closedDescription
TRUEevaluated 459 times by 3 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_qprocess - unknown status
FALSEevaluated 456 times by 4 tests
Evaluated by:
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QTextStream
  • tst_qdbusxml2cpp
)
456-2715
456 closeWriteChannel();
executed 459 times by 3 tests: closeWriteChannel();
Executed by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_qprocess - unknown status
459
457 return
executed 3630 times by 6 tests: return writeSucceeded;
Executed by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QTextStream
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
writeSucceeded;
executed 3630 times by 6 tests: return writeSucceeded;
Executed by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QTextStream
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
3630
458}-
459-
460-
461-
462-
463bool QProcessPrivate::_q_processDied()-
464{-
465 QProcess * const q = q_func();-
466-
467-
468-
469-
470 if (!waitForDeadChild()
!waitForDeadChild()Description
TRUEnever evaluated
FALSEevaluated 2319 times by 30 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_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
)
0-2319
471 return
never executed: return false;
false;
never executed: return false;
0
472 if (processState == QProcess::Starting
processState =...cess::StartingDescription
TRUEevaluated 23 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 2296 times by 30 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_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
) {
23-2296
473 if (!_q_startupNotification()
!_q_startupNotification()Description
TRUEnever evaluated
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_QProcess
)
0-23
474 return
never executed: return true;
true;
never executed: return true;
0
475 }
executed 23 times by 1 test: end of block
Executed by:
  • tst_QProcess
23
476-
477 if (dying
dyingDescription
TRUEnever evaluated
FALSEevaluated 2319 times by 30 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_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
) {
0-2319
478-
479-
480-
481-
482 return
never executed: return true;
true;
never executed: return true;
0
483 }-
484 dying = true;-
485-
486-
487-
488-
489 _q_canReadStandardOutput();-
490 _q_canReadStandardError();-
491-
492 findExitCode();-
493-
494 if (crashed
crashedDescription
TRUEevaluated 103 times by 5 tests
Evaluated by:
  • tst_QNetworkSession
  • tst_QProcess
  • tst_QSharedMemory
  • tst_QSystemSemaphore
  • tst_Selftests
FALSEevaluated 2216 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_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • ...
) {
103-2216
495 exitStatus = QProcess::CrashExit;-
496 setErrorAndEmit(QProcess::Crashed);-
497 }
executed 103 times by 5 tests: end of block
Executed by:
  • tst_QNetworkSession
  • tst_QProcess
  • tst_QSharedMemory
  • tst_QSystemSemaphore
  • tst_Selftests
103
498-
499 bool wasRunning = (processState == QProcess::Running);-
500-
501 cleanup();-
502-
503 if (wasRunning
wasRunningDescription
TRUEevaluated 2319 times by 30 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_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
FALSEnever evaluated
) {
0-2319
504-
505 q->readChannelFinished();-
506-
507-
508-
509-
510 q->finished(exitCode);-
511 q->finished(exitCode, exitStatus);-
512 }
executed 2319 times by 30 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_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
2319
513-
514-
515-
516 return
executed 2319 times by 30 tests: return true;
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
true;
executed 2319 times by 30 tests: return true;
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_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
  • ...
2319
517}-
518-
519-
520-
521-
522bool QProcessPrivate::_q_startupNotification()-
523{-
524 QProcess * const q = q_func();-
525-
526-
527-
528-
529 if (startupSocketNotifier
startupSocketNotifierDescription
TRUEevaluated 2942 times by 37 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_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • ...
FALSEevaluated 81 times by 2 tests
Evaluated by:
  • tst_QApplication
  • tst_qdbuscpp2xml
)
81-2942
530 startupSocketNotifier->setEnabled(false);
executed 2942 times by 37 tests: startupSocketNotifier->setEnabled(false);
Executed by:
  • tst_Lancelot
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • ...
2942
531 QString errorMessage;-
532 if (processStarted(&errorMessage)
processStarted(&errorMessage)Description
TRUEevaluated 2319 times by 30 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_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
FALSEevaluated 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
) {
704-2319
533 q->setProcessState(QProcess::Running);-
534 q->started(QProcess::QPrivateSignal());-
535 return
executed 2319 times by 30 tests: return true;
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • ...
true;
executed 2319 times by 30 tests: return true;
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_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
  • ...
2319
536 }-
537-
538 q->setProcessState(QProcess::NotRunning);-
539 setErrorAndEmit(QProcess::FailedToStart, errorMessage);-
540-
541-
542 waitForDeadChild();-
543 findExitCode();-
544-
545 cleanup();-
546 return
executed 704 times by 11 tests: return false;
Executed by:
  • tst_QCommandLineParser
  • tst_QFile
  • tst_QLockFile
  • tst_QProcess
  • tst_QSharedPointer
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
false;
executed 704 times by 11 tests: return false;
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
547}-
548-
549-
550-
551-
552void QProcessPrivate::closeWriteChannel()-
553{-
554-
555-
556-
557 if (stdinChannel.notifier
stdinChannel.notifierDescription
TRUEevaluated 629 times by 6 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
  • tst_uic
FALSEnever evaluated
) {
0-629
558 delete stdinChannel.notifier;-
559 stdinChannel.notifier = 0;-
560 }
executed 629 times by 6 tests: end of block
Executed by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
  • tst_uic
629
561-
562-
563-
564-
565-
566 closeChannel(&stdinChannel);-
567}
executed 629 times by 6 tests: end of block
Executed by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
  • tst_uic
629
568-
569-
570-
571-
572QProcess::QProcess(QObject *parent)-
573 : QIODevice(*new QProcessPrivate, parent)-
574{-
575-
576-
577-
578}
executed 2280 times by 35 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • ...
2280
579-
580-
581-
582-
583-
584-
585-
586QProcess::~QProcess()-
587{-
588 QProcessPrivate * const d = d_func();-
589 if (d->processState != NotRunning
d->processState != NotRunningDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QNetworkSession
FALSEevaluated 2283 times by 39 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • 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
  • ...
) {
1-2283
590 QMessageLogger(__FILE__, 1258, __PRETTY_FUNCTION__).warning().nospace()-
591 << "QProcess: Destroyed while process (" << QDir::toNativeSeparators(program()) << ") is still running.";-
592 kill();-
593 waitForFinished();-
594 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QNetworkSession
1
595-
596-
597 d->findExitCode();-
598-
599 d->cleanup();-
600}
executed 2284 times by 40 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • ...
2284
601QProcess::ProcessChannelMode QProcess::readChannelMode() const-
602{-
603 return
executed 4 times by 1 test: return processChannelMode();
Executed by:
  • tst_QProcess
processChannelMode();
executed 4 times by 1 test: return processChannelMode();
Executed by:
  • tst_QProcess
4
604}-
605void QProcess::setReadChannelMode(ProcessChannelMode mode)-
606{-
607 setProcessChannelMode(mode);-
608}
executed 26 times by 4 tests: end of block
Executed by:
  • tst_QLockFile
  • tst_QProcess
  • tst_QUndoGroup
  • tst_QUndoStack
26
609QProcess::ProcessChannelMode QProcess::processChannelMode() const-
610{-
611 const QProcessPrivate * const d = d_func();-
612 return
executed 9 times by 2 tests: return d->processChannelMode;
Executed by:
  • tst_QProcess
  • tst_qprocess - unknown status
d->processChannelMode;
executed 9 times by 2 tests: return d->processChannelMode;
Executed by:
  • tst_QProcess
  • tst_qprocess - unknown status
9
613}-
614void QProcess::setProcessChannelMode(ProcessChannelMode mode)-
615{-
616 QProcessPrivate * const d = d_func();-
617 d->processChannelMode = mode;-
618}
executed 172 times by 14 tests: end of block
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QProcess
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_qmakelib
  • tst_qprocess - unknown status
172
619QProcess::InputChannelMode QProcess::inputChannelMode() const-
620{-
621 const QProcessPrivate * const d = d_func();-
622 return
executed 5 times by 1 test: return d->inputChannelMode;
Executed by:
  • tst_qprocess - unknown status
d->inputChannelMode;
executed 5 times by 1 test: return d->inputChannelMode;
Executed by:
  • tst_qprocess - unknown status
5
623}-
624void QProcess::setInputChannelMode(InputChannelMode mode)-
625{-
626 QProcessPrivate * const d = d_func();-
627 d->inputChannelMode = mode;-
628}
executed 5 times by 1 test: end of block
Executed by:
  • tst_qprocess - unknown status
5
629-
630-
631-
632-
633-
634-
635QProcess::ProcessChannel QProcess::readChannel() const-
636{-
637 const QProcessPrivate * const d = d_func();-
638 return
executed 2523 times by 16 tests: return ProcessChannel(d->currentReadChannel);
Executed by:
  • tst_Lancelot
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QFont
  • tst_QProcess
  • tst_QSharedPointer
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
ProcessChannel(d->currentReadChannel);
executed 2523 times by 16 tests: return ProcessChannel(d->currentReadChannel);
Executed by:
  • tst_Lancelot
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QFont
  • tst_QProcess
  • tst_QSharedPointer
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
2523
639}-
640void QProcess::setReadChannel(ProcessChannel channel)-
641{-
642 QIODevice::setCurrentReadChannel(int(channel));-
643}
executed 5181 times by 18 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QFont
  • tst_QProcess
  • tst_QSharedPointer
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
5181
644void QProcess::closeReadChannel(ProcessChannel channel)-
645{-
646 QProcessPrivate * const d = d_func();-
647-
648 if (channel == StandardOutput
channel == StandardOutputDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QProcess
)
6
649 d->stdoutChannel.closed = true;
executed 6 times by 1 test: d->stdoutChannel.closed = true;
Executed by:
  • tst_QProcess
6
650 else-
651 d->stderrChannel.closed = true;
executed 6 times by 1 test: d->stderrChannel.closed = true;
Executed by:
  • tst_QProcess
6
652}-
653void QProcess::closeWriteChannel()-
654{-
655 QProcessPrivate * const d = d_func();-
656 d->stdinChannel.closed = true;-
657 if (d->writeBuffer.isEmpty()
d->writeBuffer.isEmpty()Description
TRUEevaluated 170 times by 6 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
  • tst_uic
FALSEevaluated 462 times by 5 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QTextCodec
  • tst_QTextStream
  • tst_qprocess - unknown status
)
170-462
658 d->closeWriteChannel();
executed 170 times by 6 tests: d->closeWriteChannel();
Executed by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
  • tst_uic
170
659}
executed 632 times by 8 tests: end of block
Executed by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSharedPointer
  • tst_QTextCodec
  • tst_QTextStream
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
  • tst_uic
632
660void QProcess::setStandardInputFile(const QString &fileName)-
661{-
662 QProcessPrivate * const d = d_func();-
663 d->stdinChannel = fileName;-
664}
executed 2 times by 1 test: end of block
Executed by:
  • tst_QProcess
2
665void QProcess::setStandardOutputFile(const QString &fileName, OpenMode mode)-
666{-
667 ((!(mode == Append || mode == Truncate)) ? qt_assert("mode == Append || mode == Truncate",__FILE__,1478) : qt_noop());-
668 QProcessPrivate * const d = d_func();-
669-
670 d->stdoutChannel = fileName;-
671 d->stdoutChannel.append = mode == Append;-
672}
executed 7 times by 1 test: end of block
Executed by:
  • tst_QProcess
7
673void QProcess::setStandardErrorFile(const QString &fileName, OpenMode mode)-
674{-
675 ((!(mode == Append || mode == Truncate)) ? qt_assert("mode == Append || mode == Truncate",__FILE__,1505) : qt_noop());-
676 QProcessPrivate * const d = d_func();-
677-
678 d->stderrChannel = fileName;-
679 d->stderrChannel.append = mode == Append;-
680}
executed 3 times by 1 test: end of block
Executed by:
  • tst_QProcess
3
681void QProcess::setStandardOutputProcess(QProcess *destination)-
682{-
683 QProcessPrivate *dfrom = d_func();-
684 QProcessPrivate *dto = destination->d_func();-
685 dfrom->stdoutChannel.pipeTo(dto);-
686 dto->stdinChannel.pipeFrom(dfrom);-
687}
executed 3 times by 1 test: end of block
Executed by:
  • tst_QProcess
3
688QString QProcess::workingDirectory() const-
689{-
690 const QProcessPrivate * const d = d_func();-
691 return
executed 1 time by 1 test: return d->workingDirectory;
Executed by:
  • tst_QProcess
d->workingDirectory;
executed 1 time by 1 test: return d->workingDirectory;
Executed by:
  • tst_QProcess
1
692}-
693void QProcess::setWorkingDirectory(const QString &dir)-
694{-
695 QProcessPrivate * const d = d_func();-
696 d->workingDirectory = dir;-
697}
executed 517 times by 4 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qmakelib
517
698Q_PID QProcess::pid() const-
699{-
700 const QProcessPrivate * const d = d_func();-
701 return
executed 1 time by 1 test: return d->pid;
Executed by:
  • tst_QProcess
d->pid;
executed 1 time by 1 test: return d->pid;
Executed by:
  • tst_QProcess
1
702}-
703-
704-
705-
706-
707-
708-
709-
710qint64 QProcess::processId() const-
711{-
712 const QProcessPrivate * const d = d_func();-
713-
714-
715-
716 return
executed 15 times by 2 tests: return d->pid;
Executed by:
  • tst_QProcess
  • tst_qmessagehandler
d->pid;
executed 15 times by 2 tests: return d->pid;
Executed by:
  • tst_QProcess
  • tst_qmessagehandler
15
717-
718}-
719-
720-
721-
722-
723-
724-
725-
726bool QProcess::canReadLine() const-
727{-
728 return
executed 1 time by 1 test: return QIODevice::canReadLine();
Executed by:
  • tst_QProcess
QIODevice::canReadLine();
executed 1 time by 1 test: return QIODevice::canReadLine();
Executed by:
  • tst_QProcess
1
729}-
730-
731-
732-
733-
734-
735-
736void QProcess::close()-
737{-
738 QProcessPrivate * const d = d_func();-
739 aboutToClose();-
740 while (waitForBytesWritten(-1)
waitForBytesWritten(-1)Description
TRUEnever evaluated
FALSEevaluated 5 times by 5 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QProcess
)
0-5
741 ;
never executed: ;
0
742 kill();-
743 waitForFinished(-1);-
744 d->setWriteChannelCount(0);-
745 QIODevice::close();-
746}
executed 5 times by 5 tests: end of block
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QProcess
5
747-
748-
749-
750-
751-
752-
753bool QProcess::atEnd() const-
754{-
755 return
executed 61 times by 3 tests: return QIODevice::atEnd();
Executed by:
  • tst_Lancelot
  • tst_QNetworkReply
  • tst_QProcess
QIODevice::atEnd();
executed 61 times by 3 tests: return QIODevice::atEnd();
Executed by:
  • tst_Lancelot
  • tst_QNetworkReply
  • tst_QProcess
61
756}-
757-
758-
759-
760bool QProcess::isSequential() const-
761{-
762 return
executed 2056 times by 20 tests: return true;
Executed by:
  • tst_Lancelot
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QFont
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
true;
executed 2056 times by 20 tests: return true;
Executed by:
  • tst_Lancelot
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QFont
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
2056
763}-
764-
765-
766-
767qint64 QProcess::bytesAvailable() const-
768{-
769 return
executed 872 times by 3 tests: return QIODevice::bytesAvailable();
Executed by:
  • tst_Lancelot
  • tst_QNetworkReply
  • tst_QProcess
QIODevice::bytesAvailable();
executed 872 times by 3 tests: return QIODevice::bytesAvailable();
Executed by:
  • tst_Lancelot
  • tst_QNetworkReply
  • tst_QProcess
872
770}-
771-
772-
773-
774qint64 QProcess::bytesToWrite() const-
775{-
776 qint64 size = QIODevice::bytesToWrite();-
777-
778-
779-
780 return
executed 3728 times by 2 tests: return size;
Executed by:
  • tst_QProcess
  • tst_qdbusxml2cpp
size;
executed 3728 times by 2 tests: return size;
Executed by:
  • tst_QProcess
  • tst_qdbusxml2cpp
3728
781}-
782-
783-
784-
785-
786-
787-
788QProcess::ProcessError QProcess::error() const-
789{-
790 const QProcessPrivate * const d = d_func();-
791 return
executed 774 times by 4 tests: return d->processError;
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QProcess
  • tst_QSharedMemory
d->processError;
executed 774 times by 4 tests: return d->processError;
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QProcess
  • tst_QSharedMemory
774
792}-
793-
794-
795-
796-
797-
798-
799QProcess::ProcessState QProcess::state() const-
800{-
801 const QProcessPrivate * const d = d_func();-
802 return
executed 94 times by 5 tests: return d->processState;
Executed by:
  • tst_QApplication
  • tst_QFile
  • tst_QProcess
  • tst_QSharedPointer
  • tst_QSystemSemaphore
d->processState;
executed 94 times by 5 tests: return d->processState;
Executed by:
  • tst_QApplication
  • tst_QFile
  • tst_QProcess
  • tst_QSharedPointer
  • tst_QSystemSemaphore
94
803}-
804void QProcess::setEnvironment(const QStringList &environment)-
805{-
806 setProcessEnvironment(QProcessEnvironmentPrivate::fromList(environment));-
807}
executed 137 times by 4 tests: end of block
Executed by:
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qmake
  • tst_qmessagehandler
137
808QStringList QProcess::environment() const-
809{-
810 const QProcessPrivate * const d = d_func();-
811 return
executed 1 time by 1 test: return d->environment.toStringList();
Executed by:
  • tst_QProcess
d->environment.toStringList();
executed 1 time by 1 test: return d->environment.toStringList();
Executed by:
  • tst_QProcess
1
812}-
813void QProcess::setProcessEnvironment(const QProcessEnvironment &environment)-
814{-
815 QProcessPrivate * const d = d_func();-
816 d->environment = environment;-
817}
executed 934 times by 6 tests: end of block
Executed by:
  • tst_QProcess
  • tst_QSharedPointer
  • tst_Selftests
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
934
818QProcessEnvironment QProcess::processEnvironment() const-
819{-
820 const QProcessPrivate * const d = d_func();-
821 return
never executed: return d->environment;
d->environment;
never executed: return d->environment;
0
822}-
823bool QProcess::waitForStarted(int msecs)-
824{-
825 QProcessPrivate * const d = d_func();-
826 if (d->processState == QProcess::Starting
d->processStat...cess::StartingDescription
TRUEevaluated 2796 times by 37 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QProcess
)
4-2796
827 return
executed 2796 times by 37 tests: return d->waitForStarted(msecs);
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • ...
d->waitForStarted(msecs);
executed 2796 times by 37 tests: return d->waitForStarted(msecs);
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • ...
2796
828-
829 return
executed 4 times by 1 test: return d->processState == QProcess::Running;
Executed by:
  • tst_QProcess
d->processState == QProcess::Running;
executed 4 times by 1 test: return d->processState == QProcess::Running;
Executed by:
  • tst_QProcess
4
830}-
831-
832-
833-
834bool QProcess::waitForReadyRead(int msecs)-
835{-
836 QProcessPrivate * const d = d_func();-
837-
838 if (d->processState == QProcess::NotRunning
d->processStat...ss::NotRunningDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 709 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
)
1-709
839 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
840 if (d->currentReadChannel == QProcess::StandardOutput
d->currentRead...StandardOutputDescription
TRUEevaluated 681 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 28 times by 2 tests
Evaluated by:
  • tst_QProcess
  • tst_QTextStream
&& d->stdoutChannel.closed
d->stdoutChannel.closedDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 676 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
)
5-681
841 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
842 if (d->currentReadChannel == QProcess::StandardError
d->currentRead...:StandardErrorDescription
TRUEevaluated 28 times by 2 tests
Evaluated by:
  • tst_QProcess
  • tst_QTextStream
FALSEevaluated 676 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
&& d->stderrChannel.closed
d->stderrChannel.closedDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 23 times by 2 tests
Evaluated by:
  • tst_QProcess
  • tst_QTextStream
)
5-676
843 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
844 return
executed 699 times by 9 tests: return d->waitForReadyRead(msecs);
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QTextStream
d->waitForReadyRead(msecs);
executed 699 times by 9 tests: return d->waitForReadyRead(msecs);
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QTextStream
699
845}-
846-
847-
848-
849bool QProcess::waitForBytesWritten(int msecs)-
850{-
851 QProcessPrivate * const d = d_func();-
852 if (d->processState == QProcess::NotRunning
d->processStat...ss::NotRunningDescription
TRUEevaluated 4 times by 4 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
FALSEevaluated 3262 times by 2 tests
Evaluated by:
  • tst_QProcess
  • tst_qdbusxml2cpp
)
4-3262
853 return
executed 4 times by 4 tests: return false;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
false;
executed 4 times by 4 tests: return false;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
4
854 if (d->processState == QProcess::Starting
d->processStat...cess::StartingDescription
TRUEevaluated 535 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 2727 times by 2 tests
Evaluated by:
  • tst_QProcess
  • tst_qdbusxml2cpp
) {
535-2727
855 QElapsedTimer stopWatch;-
856 stopWatch.start();-
857 bool started = waitForStarted(msecs);-
858 if (!started
!startedDescription
TRUEevaluated 100 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 435 times by 1 test
Evaluated by:
  • tst_QProcess
)
100-435
859 return
executed 100 times by 1 test: return false;
Executed by:
  • tst_QProcess
false;
executed 100 times by 1 test: return false;
Executed by:
  • tst_QProcess
100
860 msecs = qt_subtract_from_timeout(msecs, stopWatch.elapsed());-
861 }
executed 435 times by 1 test: end of block
Executed by:
  • tst_QProcess
435
862-
863 return
executed 3162 times by 2 tests: return d->waitForBytesWritten(msecs);
Executed by:
  • tst_QProcess
  • tst_qdbusxml2cpp
d->waitForBytesWritten(msecs);
executed 3162 times by 2 tests: return d->waitForBytesWritten(msecs);
Executed by:
  • tst_QProcess
  • tst_qdbusxml2cpp
3162
864}-
865bool QProcess::waitForFinished(int msecs)-
866{-
867 QProcessPrivate * const d = d_func();-
868 if (d->processState == QProcess::NotRunning
d->processStat...ss::NotRunningDescription
TRUEevaluated 5 times by 5 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QProcess
FALSEevaluated 2373 times by 35 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_QFont
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUndoGroup
  • tst_QUndoStack
  • ...
)
5-2373
869 return
executed 5 times by 5 tests: return false;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QProcess
false;
executed 5 times by 5 tests: return false;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QProcess
5
870 if (d->processState == QProcess::Starting
d->processStat...cess::StartingDescription
TRUEevaluated 587 times by 15 tests
Evaluated by:
  • tst_Lancelot
  • tst_QCommandLineParser
  • tst_QDir
  • tst_QLockFile
  • tst_QProcess
  • tst_QSharedMemory
  • tst_QSystemSemaphore
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • tst_qdbuscpp2xml
  • tst_qmakelib
  • tst_rcc
FALSEevaluated 1786 times by 22 tests
Evaluated by:
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_Selftests
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_uic
) {
587-1786
871 QElapsedTimer stopWatch;-
872 stopWatch.start();-
873 bool started = waitForStarted(msecs);-
874 if (!started
!startedDescription
TRUEevaluated 117 times by 7 tests
Evaluated by:
  • tst_QCommandLineParser
  • tst_QLockFile
  • tst_QProcess
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUndoGroup
  • tst_QUndoStack
FALSEevaluated 470 times by 9 tests
Evaluated by:
  • tst_Lancelot
  • tst_QDir
  • tst_QProcess
  • tst_QSharedMemory
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_qdbuscpp2xml
  • tst_qmakelib
  • tst_rcc
)
117-470
875 return
executed 117 times by 7 tests: return false;
Executed by:
  • tst_QCommandLineParser
  • tst_QLockFile
  • tst_QProcess
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUndoGroup
  • tst_QUndoStack
false;
executed 117 times by 7 tests: return false;
Executed by:
  • tst_QCommandLineParser
  • tst_QLockFile
  • tst_QProcess
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUndoGroup
  • tst_QUndoStack
117
876 msecs = qt_subtract_from_timeout(msecs, stopWatch.elapsed());-
877 }
executed 470 times by 9 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QDir
  • tst_QProcess
  • tst_QSharedMemory
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_qdbuscpp2xml
  • tst_qmakelib
  • tst_rcc
470
878-
879 return
executed 2256 times by 29 tests: return d->waitForFinished(msecs);
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
d->waitForFinished(msecs);
executed 2256 times by 29 tests: return d->waitForFinished(msecs);
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QIcon
  • tst_QMimeDatabase
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
2256
880}-
881-
882-
883-
884-
885-
886-
887void QProcess::setProcessState(ProcessState state)-
888{-
889 QProcessPrivate * const d = d_func();-
890 if (d->processState == state
d->processState == stateDescription
TRUEevaluated 2988 times by 40 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • ...
FALSEevaluated 8365 times by 39 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_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • ...
)
2988-8365
891 return;
executed 2988 times by 40 tests: return;
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • ...
2988
892 d->processState = state;-
893 stateChanged(state, QPrivateSignal());-
894}
executed 8365 times by 39 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_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • ...
8365
895void QProcess::setupChildProcess()-
896{-
897}-
898-
899-
900-
901qint64 QProcess::readData(char *data, qint64 maxlen)-
902{-
903 QProcessPrivate * const d = d_func();-
904 (void)data;;-
905 if (!maxlen
!maxlenDescription
TRUEevaluated 258 times by 6 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSharedPointer
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_rcc
FALSEevaluated 4081 times by 18 tests
Evaluated by:
  • tst_Lancelot
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QFont
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
)
258-4081
906 return
executed 258 times by 6 tests: return 0;
Executed by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSharedPointer
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_rcc
0;
executed 258 times by 6 tests: return 0;
Executed by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSharedPointer
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_rcc
258
907 if (d->processState == QProcess::NotRunning
d->processStat...ss::NotRunningDescription
TRUEevaluated 3483 times by 16 tests
Evaluated by:
  • tst_Lancelot
  • tst_QFont
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
FALSEevaluated 598 times by 5 tests
Evaluated by:
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
)
598-3483
908 return
executed 3483 times by 16 tests: return -1;
Executed by:
  • tst_Lancelot
  • tst_QFont
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
-1;
executed 3483 times by 16 tests: return -1;
Executed by:
  • tst_Lancelot
  • tst_QFont
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
3483
909 return
executed 598 times by 5 tests: return 0;
Executed by:
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
0;
executed 598 times by 5 tests: return 0;
Executed by:
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
598
910}-
911-
912-
913-
914qint64 QProcess::writeData(const char *data, qint64 len)-
915{-
916 QProcessPrivate * const d = d_func();-
917 if (d->stdinChannel.closed
d->stdinChannel.closedDescription
TRUEnever evaluated
FALSEevaluated 1167 times by 7 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QTextCodec
  • tst_QTextStream
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
) {
0-1167
918-
919-
920-
921-
922 return
never executed: return 0;
0;
never executed: return 0;
0
923 }-
924 d->writeBuffer.append(data, len);-
925-
926-
927-
928-
929 if (d->stdinChannel.notifier
d->stdinChannel.notifierDescription
TRUEevaluated 1167 times by 7 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QTextCodec
  • tst_QTextStream
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
FALSEnever evaluated
)
0-1167
930 d->stdinChannel.notifier->setEnabled(true);
executed 1167 times by 7 tests: d->stdinChannel.notifier->setEnabled(true);
Executed by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QTextCodec
  • tst_QTextStream
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
1167
931-
932-
933-
934-
935-
936 return
executed 1167 times by 7 tests: return len;
Executed by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QTextCodec
  • tst_QTextStream
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
len;
executed 1167 times by 7 tests: return len;
Executed by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QTextCodec
  • tst_QTextStream
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
1167
937}-
938QByteArray QProcess::readAllStandardOutput()-
939{-
940 ProcessChannel tmp = readChannel();-
941 setReadChannel(StandardOutput);-
942 QByteArray data = readAll();-
943 setReadChannel(tmp);-
944 return
executed 638 times by 11 tests: return data;
Executed by:
  • tst_Lancelot
  • tst_QFont
  • tst_QProcess
  • tst_QSharedPointer
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qmakelib
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
data;
executed 638 times by 11 tests: return data;
Executed by:
  • tst_Lancelot
  • tst_QFont
  • tst_QProcess
  • tst_QSharedPointer
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qmakelib
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
638
945}-
946QByteArray QProcess::readAllStandardError()-
947{-
948 ProcessChannel tmp = readChannel();-
949 setReadChannel(StandardError);-
950 QByteArray data = readAll();-
951 setReadChannel(tmp);-
952 return
executed 1882 times by 13 tests: return data;
Executed by:
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QProcess
  • tst_QSharedPointer
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
data;
executed 1882 times by 13 tests: return data;
Executed by:
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QProcess
  • tst_QSharedPointer
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
1882
953}-
954void QProcess::start(const QString &program, const QStringList &arguments, OpenMode mode)-
955{-
956 QProcessPrivate * const d = d_func();-
957 if (d->processState != NotRunning
d->processState != NotRunningDescription
TRUEnever evaluated
FALSEevaluated 3022 times by 39 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_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • ...
) {
0-3022
958 QMessageLogger(__FILE__, 2083, __PRETTY_FUNCTION__).warning("QProcess::start: Process is already running");-
959 return;
never executed: return;
0
960 }-
961 if (program.isEmpty()
program.isEmpty()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 3021 times by 39 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_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • ...
) {
1-3021
962 d->setErrorAndEmit(QProcess::FailedToStart, tr("No program defined"));-
963 return;
executed 1 time by 1 test: return;
Executed by:
  • tst_QProcess
1
964 }-
965-
966 d->program = program;-
967 d->arguments = arguments;-
968-
969 d->start(mode);-
970}
executed 3021 times by 39 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_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • ...
3021
971void QProcess::start(OpenMode mode)-
972{-
973 QProcessPrivate * const d = d_func();-
974 if (d->processState != NotRunning
d->processState != NotRunningDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QProcess
) {
0-2
975 QMessageLogger(__FILE__, 2110, __PRETTY_FUNCTION__).warning("QProcess::start: Process is already running");-
976 return;
never executed: return;
0
977 }-
978 if (d->program.isEmpty()
d->program.isEmpty()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcess
) {
1
979 d->setErrorAndEmit(QProcess::FailedToStart, tr("No program defined"));-
980 return;
executed 1 time by 1 test: return;
Executed by:
  • tst_QProcess
1
981 }-
982-
983 d->start(mode);-
984}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QProcess
1
985bool QProcess::open(OpenMode mode)-
986{-
987 QProcessPrivate * const d = d_func();-
988 if (d->processState != NotRunning
d->processState != NotRunningDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QProcess
) {
0-2
989 QMessageLogger(__FILE__, 2134, __PRETTY_FUNCTION__).warning("QProcess::start: Process is already running");-
990 return
never executed: return false;
false;
never executed: return false;
0
991 }-
992 if (d->program.isEmpty()
d->program.isEmpty()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcess
) {
1
993 QMessageLogger(__FILE__, 2138, __PRETTY_FUNCTION__).warning("QProcess::start: program not set");-
994 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
995 }-
996-
997 d->start(mode);-
998 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
999}-
1000-
1001void QProcessPrivate::start(QIODevice::OpenMode mode)-
1002{-
1003 QProcess * const q = q_func();-
1004-
1005-
1006-
1007-
1008 if (stdinChannel.type != QProcessPrivate::Channel::Normal
stdinChannel.t...hannel::NormalDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 3018 times by 39 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_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • ...
)
5-3018
1009 mode &= ~QIODevice::WriteOnly;
executed 5 times by 1 test: mode &= ~QIODevice::WriteOnly;
Executed by:
  • tst_QProcess
5
1010 if (stdoutChannel.type != QProcessPrivate::Channel::Normal
stdoutChannel....hannel::NormalDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 3014 times by 39 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_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • ...
&&
9-3014
1011 (stderrChannel.type != QProcessPrivate::Channel::Normal
stderrChannel....hannel::NormalDescription
TRUEnever evaluated
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QProcess
||
0-9
1012 processChannelMode == QProcess::MergedChannels
processChannel...MergedChannelsDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QProcess
))
3-6
1013 mode &= ~QIODevice::ReadOnly;
executed 3 times by 1 test: mode &= ~QIODevice::ReadOnly;
Executed by:
  • tst_QProcess
3
1014 if (mode == 0
mode == 0Description
TRUEnever evaluated
FALSEevaluated 3023 times by 39 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_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • ...
)
0-3023
1015 mode = QIODevice::Unbuffered;
never executed: mode = QIODevice::Unbuffered;
0
1016-
1017 if ((
(mode & QIODev...ReadOnly) == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 3019 times by 39 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_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • ...
mode & QIODevice::ReadOnly) == 0
(mode & QIODev...ReadOnly) == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 3019 times by 39 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_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • ...
) {
4-3019
1018 if (stdoutChannel.type == QProcessPrivate::Channel::Normal
stdoutChannel....hannel::NormalDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QProcess
)
1-3
1019 q->setStandardOutputFile(q->nullDevice());
executed 1 time by 1 test: q->setStandardOutputFile(q->nullDevice());
Executed by:
  • tst_QProcess
1
1020 if (stderrChannel.type == QProcessPrivate::Channel::Normal
stderrChannel....hannel::NormalDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEnever evaluated
0-4
1021 && processChannelMode != QProcess::MergedChannels
processChannel...MergedChannelsDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QProcess
)
1-3
1022 q->setStandardErrorFile(q->nullDevice());
executed 1 time by 1 test: q->setStandardErrorFile(q->nullDevice());
Executed by:
  • tst_QProcess
1
1023 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QProcess
4
1024-
1025-
1026 q->QIODevice::open(mode);-
1027-
1028 if (q->isReadable()
q->isReadable()Description
TRUEevaluated 3019 times by 39 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_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QProcess
&& processChannelMode != QProcess::MergedChannels
processChannel...MergedChannelsDescription
TRUEevaluated 3004 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_QIcon
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • ...
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QProcess
)
4-3019
1029 setReadChannelCount(2);
executed 3004 times by 38 tests: setReadChannelCount(2);
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QIcon
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • ...
3004
1030-
1031 stdinChannel.closed = false;-
1032 stdoutChannel.closed = false;-
1033 stderrChannel.closed = false;-
1034-
1035 exitCode = 0;-
1036 exitStatus = QProcess::NormalExit;-
1037 processError = QProcess::UnknownError;-
1038 errorString.clear();-
1039 startProcess();-
1040}
executed 3023 times by 39 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_QIcon
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • ...
3023
1041-
1042-
1043static QStringList parseCombinedArgString(const QString &program)-
1044{-
1045 QStringList args;-
1046 QString tmp;-
1047 int quoteCount = 0;-
1048 bool inQuote = false;-
1049-
1050-
1051-
1052-
1053 for (int i = 0; i < program.size()
i < program.size()Description
TRUEevaluated 60345 times by 16 tests
Evaluated by:
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • tst_qmessagehandler
  • tst_qprocess - unknown status
FALSEevaluated 1327 times by 16 tests
Evaluated by:
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • tst_qmessagehandler
  • tst_qprocess - unknown status
; ++i) {
1327-60345
1054 if (program.at(i) == QLatin1Char('"')
program.at(i) ...atin1Char('"')Description
TRUEevaluated 372 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 59973 times by 16 tests
Evaluated by:
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • tst_qmessagehandler
  • tst_qprocess - unknown status
) {
372-59973
1055 ++quoteCount;-
1056 if (quoteCount == 3
quoteCount == 3Description
TRUEevaluated 84 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 288 times by 1 test
Evaluated by:
  • tst_QProcess
) {
84-288
1057-
1058 quoteCount = 0;-
1059 tmp += program.at(i);-
1060 }
executed 84 times by 1 test: end of block
Executed by:
  • tst_QProcess
84
1061 continue;
executed 372 times by 1 test: continue;
Executed by:
  • tst_QProcess
372
1062 }-
1063 if (quoteCount
quoteCountDescription
TRUEevaluated 99 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 59874 times by 16 tests
Evaluated by:
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • tst_qmessagehandler
  • tst_qprocess - unknown status
) {
99-59874
1064 if (quoteCount == 1
quoteCount == 1Description
TRUEevaluated 93 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QProcess
)
6-93
1065 inQuote = !inQuote;
executed 93 times by 1 test: inQuote = !inQuote;
Executed by:
  • tst_QProcess
93
1066 quoteCount = 0;-
1067 }
executed 99 times by 1 test: end of block
Executed by:
  • tst_QProcess
99
1068 if (!inQuote
!inQuoteDescription
TRUEevaluated 59079 times by 16 tests
Evaluated by:
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • tst_qmessagehandler
  • tst_qprocess - unknown status
FALSEevaluated 894 times by 1 test
Evaluated by:
  • tst_QProcess
&& program.at(i).isSpace()
program.at(i).isSpace()Description
TRUEevaluated 330 times by 4 tests
Evaluated by:
  • tst_QProcess
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
FALSEevaluated 58749 times by 16 tests
Evaluated by:
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • tst_qmessagehandler
  • tst_qprocess - unknown status
) {
330-59079
1069 if (!tmp.isEmpty()
!tmp.isEmpty()Description
TRUEevaluated 317 times by 4 tests
Evaluated by:
  • tst_QProcess
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_QProcess
) {
13-317
1070 args += tmp;-
1071 tmp.clear();-
1072 }
executed 317 times by 4 tests: end of block
Executed by:
  • tst_QProcess
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
317
1073 }
executed 330 times by 4 tests: end of block
Executed by:
  • tst_QProcess
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
else {
330
1074 tmp += program.at(i);-
1075 }
executed 59643 times by 16 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • tst_qmessagehandler
  • tst_qprocess - unknown status
59643
1076 }-
1077 if (!tmp.isEmpty()
!tmp.isEmpty()Description
TRUEevaluated 1317 times by 16 tests
Evaluated by:
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • tst_qmessagehandler
  • tst_qprocess - unknown status
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_QProcess
)
10-1317
1078 args += tmp;
executed 1317 times by 16 tests: args += tmp;
Executed by:
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • tst_qmessagehandler
  • tst_qprocess - unknown status
1317
1079-
1080 return
executed 1327 times by 16 tests: return args;
Executed by:
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • tst_qmessagehandler
  • tst_qprocess - unknown status
args;
executed 1327 times by 16 tests: return args;
Executed by:
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • tst_qmessagehandler
  • tst_qprocess - unknown status
1327
1081}-
1082void QProcess::start(const QString &command, OpenMode mode)-
1083{-
1084 QStringList args = parseCombinedArgString(command);-
1085 if (args.isEmpty()
args.isEmpty()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 1318 times by 16 tests
Evaluated by:
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • tst_qmessagehandler
  • tst_qprocess - unknown status
) {
4-1318
1086 QProcessPrivate * const d = d_func();-
1087 d->setErrorAndEmit(QProcess::FailedToStart, tr("No program defined"));-
1088 return;
executed 4 times by 1 test: return;
Executed by:
  • tst_QProcess
4
1089 }-
1090-
1091 const QString prog = args.takeFirst();-
1092-
1093 start(prog, args, mode);-
1094}
executed 1318 times by 16 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • tst_qmessagehandler
  • tst_qprocess - unknown status
1318
1095QString QProcess::program() const-
1096{-
1097 const QProcessPrivate * const d = d_func();-
1098 return
executed 2 times by 2 tests: return d->program;
Executed by:
  • tst_QNetworkSession
  • tst_QProcess
d->program;
executed 2 times by 2 tests: return d->program;
Executed by:
  • tst_QNetworkSession
  • tst_QProcess
2
1099}-
1100void QProcess::setProgram(const QString &program)-
1101{-
1102 QProcessPrivate * const d = d_func();-
1103 if (d->processState != NotRunning
d->processState != NotRunningDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QProcess
) {
0-2
1104 QMessageLogger(__FILE__, 2307, __PRETTY_FUNCTION__).warning("QProcess::setProgram: Process is already running");-
1105 return;
never executed: return;
0
1106 }-
1107 d->program = program;-
1108}
executed 2 times by 1 test: end of block
Executed by:
  • tst_QProcess
2
1109QStringList QProcess::arguments() const-
1110{-
1111 const QProcessPrivate * const d = d_func();-
1112 return
executed 1 time by 1 test: return d->arguments;
Executed by:
  • tst_QProcess
d->arguments;
executed 1 time by 1 test: return d->arguments;
Executed by:
  • tst_QProcess
1
1113}-
1114void QProcess::setArguments(const QStringList &arguments)-
1115{-
1116 QProcessPrivate * const d = d_func();-
1117 if (d->processState != NotRunning
d->processState != NotRunningDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcess
) {
0-1
1118 QMessageLogger(__FILE__, 2338, __PRETTY_FUNCTION__).warning("QProcess::setProgram: Process is already running");-
1119 return;
never executed: return;
0
1120 }-
1121 d->arguments = arguments;-
1122}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QProcess
1
1123void QProcess::terminate()-
1124{-
1125 QProcessPrivate * const d = d_func();-
1126 d->terminateProcess();-
1127}
executed 14 times by 3 tests: end of block
Executed by:
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QProcess
14
1128void QProcess::kill()-
1129{-
1130 QProcessPrivate * const d = d_func();-
1131 d->killProcess();-
1132}
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
1133-
1134-
1135-
1136-
1137-
1138-
1139int QProcess::exitCode() const-
1140{-
1141 const QProcessPrivate * const d = d_func();-
1142 return
executed 1261 times by 13 tests: return d->exitCode;
Executed by:
  • tst_Lancelot
  • tst_QIcon
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTextCodec
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_uic
d->exitCode;
executed 1261 times by 13 tests: return d->exitCode;
Executed by:
  • tst_Lancelot
  • tst_QIcon
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTextCodec
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_uic
1261
1143}-
1144QProcess::ExitStatus QProcess::exitStatus() const-
1145{-
1146 const QProcessPrivate * const d = d_func();-
1147 return
executed 1508 times by 11 tests: return d->exitStatus;
Executed by:
  • tst_QApplication
  • tst_QIcon
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSystemSemaphore
  • tst_QTextCodec
  • tst_Selftests
  • tst_qmake
  • tst_qmakelib
  • tst_uic
d->exitStatus;
executed 1508 times by 11 tests: return d->exitStatus;
Executed by:
  • tst_QApplication
  • tst_QIcon
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSystemSemaphore
  • tst_QTextCodec
  • tst_Selftests
  • tst_qmake
  • tst_qmakelib
  • tst_uic
1508
1148}-
1149int QProcess::execute(const QString &program, const QStringList &arguments)-
1150{-
1151 QProcess process;-
1152 process.setReadChannelMode(ForwardedChannels);-
1153 process.start(program, arguments);-
1154 if (!process.waitForFinished(-1)
!process.waitForFinished(-1)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QLockFile
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcess
|| process.error() == FailedToStart
process.error(... FailedToStartDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcess
)
0-4
1155 return
executed 4 times by 1 test: return -2;
Executed by:
  • tst_QLockFile
-2;
executed 4 times by 1 test: return -2;
Executed by:
  • tst_QLockFile
4
1156 return
executed 1 time by 1 test: return process.exitStatus() == QProcess::NormalExit ? process.exitCode() : -1;
Executed by:
  • tst_QProcess
process.exitStatus() == QProcess::NormalExit ? process.exitCode() : -1;
executed 1 time by 1 test: return process.exitStatus() == QProcess::NormalExit ? process.exitCode() : -1;
Executed by:
  • tst_QProcess
1
1157}-
1158int QProcess::execute(const QString &command)-
1159{-
1160 QProcess process;-
1161 process.setReadChannelMode(ForwardedChannels);-
1162 process.start(command);-
1163 if (!process.waitForFinished(-1)
!process.waitForFinished(-1)Description
TRUEevaluated 4 times by 3 tests
Evaluated by:
  • tst_QProcess
  • tst_QUndoGroup
  • tst_QUndoStack
FALSEnever evaluated
|| process.error() == FailedToStart
process.error(... FailedToStartDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-4
1164 return
executed 4 times by 3 tests: return -2;
Executed by:
  • tst_QProcess
  • tst_QUndoGroup
  • tst_QUndoStack
-2;
executed 4 times by 3 tests: return -2;
Executed by:
  • tst_QProcess
  • tst_QUndoGroup
  • tst_QUndoStack
4
1165 return
never executed: return process.exitStatus() == QProcess::NormalExit ? process.exitCode() : -1;
process.exitStatus() == QProcess::NormalExit ? process.exitCode() : -1;
never executed: return process.exitStatus() == QProcess::NormalExit ? process.exitCode() : -1;
0
1166}-
1167bool QProcess::startDetached(const QString &program,-
1168 const QStringList &arguments,-
1169 const QString &workingDirectory,-
1170 qint64 *pid)-
1171{-
1172 return
executed 1 time by 1 test: return QProcessPrivate::startDetached(program, arguments, workingDirectory, pid);
Executed by:
  • tst_QProcess
QProcessPrivate::startDetached(program,
executed 1 time by 1 test: return QProcessPrivate::startDetached(program, arguments, workingDirectory, pid);
Executed by:
  • tst_QProcess
1
1173 arguments,
executed 1 time by 1 test: return QProcessPrivate::startDetached(program, arguments, workingDirectory, pid);
Executed by:
  • tst_QProcess
1
1174 workingDirectory,
executed 1 time by 1 test: return QProcessPrivate::startDetached(program, arguments, workingDirectory, pid);
Executed by:
  • tst_QProcess
1
1175 pid);
executed 1 time by 1 test: return QProcessPrivate::startDetached(program, arguments, workingDirectory, pid);
Executed by:
  • tst_QProcess
1
1176}-
1177-
1178-
1179-
1180-
1181bool QProcess::startDetached(const QString &program,-
1182 const QStringList &arguments)-
1183{-
1184 return
executed 1 time by 1 test: return QProcessPrivate::startDetached(program, arguments);
Executed by:
  • tst_QProcess
QProcessPrivate::startDetached(program, arguments);
executed 1 time by 1 test: return QProcessPrivate::startDetached(program, arguments);
Executed by:
  • tst_QProcess
1
1185}-
1186bool QProcess::startDetached(const QString &command)-
1187{-
1188 QStringList args = parseCombinedArgString(command);-
1189 if (args.isEmpty()
args.isEmpty()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QProcess
)
2-3
1190 return
executed 3 times by 1 test: return false;
Executed by:
  • tst_QProcess
false;
executed 3 times by 1 test: return false;
Executed by:
  • tst_QProcess
3
1191-
1192 const QString prog = args.takeFirst();-
1193-
1194 return
executed 2 times by 1 test: return QProcessPrivate::startDetached(prog, args);
Executed by:
  • tst_QProcess
QProcessPrivate::startDetached(prog, args);
executed 2 times by 1 test: return QProcessPrivate::startDetached(prog, args);
Executed by:
  • tst_QProcess
2
1195}-
1196-
1197-
1198-
1199-
1200-
1201-
1202-
1203-
1204-
1205 extern char **environ;-
1206-
1207-
1208QStringList QProcess::systemEnvironment()-
1209{-
1210 QStringList tmp;-
1211 char *entry = 0;-
1212 int count = 0;-
1213 while ((
(entry = environ[count++])Description
TRUEevaluated 1651 times by 4 tests
Evaluated by:
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qmake
  • tst_qmessagehandler
FALSEevaluated 55 times by 4 tests
Evaluated by:
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qmake
  • tst_qmessagehandler
entry = environ[count++])
(entry = environ[count++])Description
TRUEevaluated 1651 times by 4 tests
Evaluated by:
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qmake
  • tst_qmessagehandler
FALSEevaluated 55 times by 4 tests
Evaluated by:
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qmake
  • tst_qmessagehandler
)
55-1651
1214 tmp << QString::fromLocal8Bit(entry);
executed 1651 times by 4 tests: tmp << QString::fromLocal8Bit(entry);
Executed by:
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qmake
  • tst_qmessagehandler
1651
1215 return
executed 55 times by 4 tests: return tmp;
Executed by:
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qmake
  • tst_qmessagehandler
tmp;
executed 55 times by 4 tests: return tmp;
Executed by:
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qmake
  • tst_qmessagehandler
55
1216}-
1217QString QProcess::nullDevice()-
1218{-
1219-
1220-
1221-
1222 return
executed 5 times by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "/dev/null")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "/dev/null" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_QProcess
([]() -> QString { enum { Size = sizeof(u"" "/dev/null")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "/dev/null" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 5 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QProcess
qstring_literal_temp;
executed 5 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QProcess
}());
executed 5 times by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "/dev/null")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "/dev/null" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_QProcess
5
1223-
1224}-
1225-
1226-
Switch to Source codePreprocessed file

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