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 13934 times by 2 tests
Evaluated by:
  • tst_QProcessEnvironment
  • tst_Selftests
FALSEevaluated 1954 times by 2 tests
Evaluated by:
  • tst_QProcessEnvironment
  • tst_Selftests
; ++it)
1954-13934
16 result << nameToString(it.key()) + QLatin1Char('=') + valueToString(it.value());
executed 13934 times by 2 tests: result << nameToString(it.key()) + QLatin1Char('=') + valueToString(it.value());
Executed by:
  • tst_QProcessEnvironment
  • tst_Selftests
13934
17 return
executed 1954 times by 2 tests: return result;
Executed by:
  • tst_QProcessEnvironment
  • tst_Selftests
result;
executed 1954 times by 2 tests: return result;
Executed by:
  • tst_QProcessEnvironment
  • tst_Selftests
1954
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 2237 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_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
  • tst_QUndoStack
  • ...
2237
73-
74-
75-
76-
77QProcessEnvironment::~QProcessEnvironment()-
78{-
79}-
80-
81-
82-
83-
84QProcessEnvironment::QProcessEnvironment(const QProcessEnvironment &other)-
85 : d(other.d)-
86{-
87}
executed 673 times by 1 test: end of block
Executed by:
  • tst_Selftests
673
88-
89-
90-
91-
92-
93QProcessEnvironment &QProcessEnvironment::operator=(const QProcessEnvironment &other)-
94{-
95 d = other.d;-
96 return
executed 1165 times by 6 tests: return *this;
Executed by:
  • tst_QProcess
  • tst_QSharedPointer
  • tst_Selftests
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
*this;
executed 1165 times by 6 tests: return *this;
Executed by:
  • tst_QProcess
  • tst_QSharedPointer
  • tst_Selftests
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
1165
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 684 times by 4 tests: return d ? d->hash.isEmpty() : true;
Executed by:
  • tst_QProcess
  • tst_QProcessEnvironment
  • tst_Selftests
  • tst_qmakelib
d
dDescription
TRUEevaluated 681 times by 4 tests
Evaluated by:
  • tst_QProcess
  • tst_QProcessEnvironment
  • tst_Selftests
  • tst_qmakelib
FALSEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QProcessEnvironment
  • tst_Selftests
? d->hash.isEmpty() : true;
executed 684 times by 4 tests: return d ? d->hash.isEmpty() : true;
Executed by:
  • tst_QProcess
  • tst_QProcessEnvironment
  • tst_Selftests
  • tst_qmakelib
3-684
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 4353 times by 7 tests: end of block
Executed by:
  • tst_QProcess
  • tst_QProcessEnvironment
  • tst_QSharedPointer
  • tst_Selftests
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
4353
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 1954 times by 2 tests
Evaluated by:
  • tst_QProcessEnvironment
  • tst_Selftests
)
2-1954
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 1954 times by 2 tests: return d->toList();
Executed by:
  • tst_QProcessEnvironment
  • tst_Selftests
d->toList();
executed 1954 times by 2 tests: return d->toList();
Executed by:
  • tst_QProcessEnvironment
  • tst_Selftests
1954
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__,438) : 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__,443) : 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 processChannel = QProcess::StandardOutput;-
224 processChannelMode = QProcess::SeparateChannels;-
225 inputChannelMode = QProcess::ManagedInputChannel;-
226 processError = QProcess::UnknownError;-
227 processState = QProcess::NotRunning;-
228 pid = 0;-
229 sequenceNumber = 0;-
230 exitCode = 0;-
231 exitStatus = QProcess::NormalExit;-
232 startupSocketNotifier = 0;-
233 deathNotifier = 0;-
234 childStartedPipe[0] = -1;-
235 childStartedPipe[1] = -1;-
236 forkfd = -1;-
237 exitCode = 0;-
238 crashed = false;-
239 dying = false;-
240 emittedReadyRead = false;-
241 emittedBytesWritten = false;-
242-
243-
244-
245-
246}
executed 1730 times by 34 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • ...
1730
247-
248-
249-
250-
251QProcessPrivate::~QProcessPrivate()-
252{-
253 if (stdinChannel.process
stdinChannel.processDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 1731 times by 39 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • ...
)
3-1731
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 1734 times by 39 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • ...
)
0-1734
256 stdoutChannel.process->stdinChannel.clear();
never executed: stdoutChannel.process->stdinChannel.clear();
0
257}
executed 1734 times by 39 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • ...
1734
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 2382 times by 36 tests
Evaluated by:
  • tst_Lancelot
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • ...
FALSEevaluated 1826 times by 39 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • ...
) {
1826-2382
270 delete stdoutChannel.notifier;-
271 stdoutChannel.notifier = 0;-
272 }
executed 2382 times by 36 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • ...
2382
273 if (stderrChannel.notifier
stderrChannel.notifierDescription
TRUEevaluated 2373 times by 35 tests
Evaluated by:
  • tst_Lancelot
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • ...
FALSEevaluated 1835 times by 39 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • ...
) {
1835-2373
274 delete stderrChannel.notifier;-
275 stderrChannel.notifier = 0;-
276 }
executed 2373 times by 35 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • ...
2373
277 if (stdinChannel.notifier
stdinChannel.notifierDescription
TRUEevaluated 2188 times by 33 tests
Evaluated by:
  • tst_Lancelot
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_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
  • ...
FALSEevaluated 2020 times by 39 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • ...
) {
2020-2188
278 delete stdinChannel.notifier;-
279 stdinChannel.notifier = 0;-
280 }
executed 2188 times by 33 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_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
  • ...
2188
281 if (startupSocketNotifier
startupSocketNotifierDescription
TRUEnever evaluated
FALSEevaluated 4208 times by 43 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • ...
) {
0-4208
282 delete startupSocketNotifier;-
283 startupSocketNotifier = 0;-
284 }
never executed: end of block
0
285 if (deathNotifier
deathNotifierDescription
TRUEnever evaluated
FALSEevaluated 4208 times by 43 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • ...
) {
0-4208
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 4208 times by 43 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • ...
)
0-4208
295 qt_safe_close(forkfd);
never executed: qt_safe_close(forkfd);
0
296 forkfd = -1;-
297-
298}
executed 4208 times by 43 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • ...
4208
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 104 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
) {
104-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 90 times by 5 tests: case QProcess::Crashed:
Executed by:
  • tst_QNetworkSession
  • tst_QProcess
  • tst_QSharedMemory
  • tst_QSystemSemaphore
  • tst_Selftests
QProcess::Crashed:
executed 90 times by 5 tests: case QProcess::Crashed:
Executed by:
  • tst_QNetworkSession
  • tst_QProcess
  • tst_QSharedMemory
  • tst_QSystemSemaphore
  • tst_Selftests
90
312 errorString = QProcess::tr("Process crashed");-
313 break;
executed 90 times by 5 tests: break;
Executed by:
  • tst_QNetworkSession
  • tst_QProcess
  • tst_QSharedMemory
  • tst_QSystemSemaphore
  • tst_Selftests
90
314 case
executed 9 times by 3 tests: case QProcess::Timedout:
Executed by:
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSystemSemaphore
QProcess::Timedout:
executed 9 times by 3 tests: case QProcess::Timedout:
Executed by:
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSystemSemaphore
9
315 errorString = QProcess::tr("Process operation timed out");-
316 break;
executed 9 times by 3 tests: break;
Executed by:
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSystemSemaphore
9
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 104 times by 6 tests: end of block
Executed by:
  • tst_QNetworkSession
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSystemSemaphore
  • tst_Selftests
else {
104
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__,956) : qt_noop());-
339 setError(error, description);-
340 q->errorOccurred(processError);-
341 q->error(processError);-
342}
executed 805 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
805
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 3534 times by 29 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
FALSEevaluated 38181 times by 29 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
)
3534-38181
352 return
executed 3534 times by 29 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_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
false;
executed 3534 times by 29 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_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
3534
353-
354 qint64 available = bytesAvailableInChannel(channel);-
355 if (available == 0
available == 0Description
TRUEevaluated 3509 times by 29 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
FALSEevaluated 34672 times by 25 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_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
  • tst_uic
)
3509-34672
356 available = 1;
executed 3509 times by 29 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_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
3509
357-
358 char *ptr = channel->buffer.reserve(available);-
359 qint64 readBytes = readFromChannel(channel, ptr, available);-
360 if (readBytes <= 0
readBytes <= 0Description
TRUEevaluated 3509 times by 29 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
FALSEevaluated 34672 times by 25 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_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
  • tst_uic
)
3509-34672
361 channel->buffer.chop(available);
executed 3509 times by 29 tests: channel->buffer.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_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
3509
362 if (readBytes == -2
readBytes == -2Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 38179 times by 29 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
) {
2-38179
363-
364 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_QProcess
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_QProcess
2
365 }-
366 if (readBytes == -1
readBytes == -1Description
TRUEnever evaluated
FALSEevaluated 38179 times by 29 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
) {
0-38179
367 setErrorAndEmit(QProcess::ReadError);-
368-
369-
370-
371 return
never executed: return false;
false;
never executed: return false;
0
372 }-
373 if (readBytes == 0
readBytes == 0Description
TRUEevaluated 3507 times by 29 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
FALSEevaluated 34672 times by 25 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_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
  • tst_uic
) {
3507-34672
374-
375 if (channel->notifier
channel->notifierDescription
TRUEevaluated 3345 times by 27 tests
Evaluated by:
  • tst_Lancelot
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • ...
FALSEevaluated 162 times by 2 tests
Evaluated by:
  • tst_QApplication
  • tst_qdbuscpp2xml
)
162-3345
376 channel->notifier->setEnabled(false);
executed 3345 times by 27 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_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
  • tst_qprocess - unknown status
  • ...
3345
377 closeChannel(channel);-
378-
379-
380-
381 return
executed 3507 times by 29 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_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
false;
executed 3507 times by 29 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_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
3507
382 }-
383-
384-
385-
386-
387-
388 if (channel->closed
channel->closedDescription
TRUEevaluated 40 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 34632 times by 25 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_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
  • tst_uic
) {
40-34632
389 channel->buffer.chop(readBytes);-
390 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
391 }-
392-
393 channel->buffer.chop(available - readBytes);-
394-
395 bool didRead = false;-
396 bool isStdout = channel == &stdoutChannel;-
397 if (readBytes == 0
readBytes == 0Description
TRUEnever evaluated
FALSEevaluated 34632 times by 25 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_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
  • tst_uic
) {
0-34632
398 if (channel->notifier
channel->notifierDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
399 channel->notifier->setEnabled(false);
never executed: channel->notifier->setEnabled(false);
0
400 }
never executed: end of block
else if ((
(processChanne...t) == isStdoutDescription
TRUEevaluated 33489 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 1143 times by 10 tests
Evaluated by:
  • tst_Lancelot
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QSharedPointer
  • tst_Selftests
  • tst_qmake
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_uic
processChannel == QProcess::StandardOutput) == isStdout
(processChanne...t) == isStdoutDescription
TRUEevaluated 33489 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 1143 times by 10 tests
Evaluated by:
  • tst_Lancelot
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QSharedPointer
  • tst_Selftests
  • tst_qmake
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_uic
) {
0-33489
401 didRead = true;-
402 if (!emittedReadyRead
!emittedReadyReadDescription
TRUEevaluated 33488 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-33488
403 emittedReadyRead = true;-
404 q->readyRead();-
405 emittedReadyRead = false;-
406 }
executed 33488 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
33488
407 }
executed 33489 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
33489
408 if (isStdout
isStdoutDescription
TRUEevaluated 33864 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 768 times by 10 tests
Evaluated by:
  • tst_Lancelot
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QSharedPointer
  • tst_Selftests
  • tst_qmake
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_uic
)
768-33864
409 q->readyReadStandardOutput(QProcess::QPrivateSignal());
executed 33864 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
33864
410 else-
411 q->readyReadStandardError(QProcess::QPrivateSignal());
executed 768 times by 10 tests: q->readyReadStandardError(QProcess::QPrivateSignal());
Executed by:
  • tst_Lancelot
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QSharedPointer
  • tst_Selftests
  • tst_qmake
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_uic
768
412 return
executed 34632 times by 25 tests: return didRead;
Executed by:
  • tst_Lancelot
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QFont
  • 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
  • tst_uic
didRead;
executed 34632 times by 25 tests: return didRead;
Executed by:
  • tst_Lancelot
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QFont
  • 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
  • tst_uic
34632
413}-
414-
415-
416-
417-
418bool QProcessPrivate::_q_canReadStandardOutput()-
419{-
420 return
executed 37412 times by 29 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_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
tryReadFromChannel(&stdoutChannel);
executed 37412 times by 29 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_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
37412
421}-
422-
423-
424-
425-
426bool QProcessPrivate::_q_canReadStandardError()-
427{-
428 return
executed 4303 times by 29 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_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
tryReadFromChannel(&stderrChannel);
executed 4303 times by 29 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_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
4303
429}-
430-
431-
432-
433-
434bool QProcessPrivate::_q_canWrite()-
435{-
436 if (stdinChannel.notifier
stdinChannel.notifierDescription
TRUEevaluated 629 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-629
437 stdinChannel.notifier->setEnabled(false);
executed 629 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
629
438-
439 if (stdinChannel.buffer.isEmpty()
stdinChannel.buffer.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 629 times by 6 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QTextStream
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
) {
0-629
440-
441-
442-
443 return
never executed: return false;
false;
never executed: return false;
0
444 }-
445-
446 const bool writeSucceeded = writeToStdin();-
447-
448 if (stdinChannel.notifier
stdinChannel.notifierDescription
TRUEevaluated 629 times by 6 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QTextStream
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
FALSEnever evaluated
&& !stdinChannel.buffer.isEmpty()
!stdinChannel.buffer.isEmpty()Description
TRUEevaluated 146 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QProcess
FALSEevaluated 483 times by 6 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QTextStream
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
)
0-629
449 stdinChannel.notifier->setEnabled(true);
executed 146 times by 2 tests: stdinChannel.notifier->setEnabled(true);
Executed by:
  • tst_QNetworkReply
  • tst_QProcess
146
450 if (stdinChannel.buffer.isEmpty()
stdinChannel.buffer.isEmpty()Description
TRUEevaluated 483 times by 6 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QTextStream
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
FALSEevaluated 146 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QProcess
&& stdinChannel.closed
stdinChannel.closedDescription
TRUEevaluated 29 times by 3 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_qprocess - unknown status
FALSEevaluated 454 times by 4 tests
Evaluated by:
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QTextStream
  • tst_qdbusxml2cpp
)
29-483
451 closeWriteChannel();
executed 29 times by 3 tests: closeWriteChannel();
Executed by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_qprocess - unknown status
29
452 return
executed 629 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 629 times by 6 tests: return writeSucceeded;
Executed by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QTextStream
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
629
453}-
454-
455-
456-
457-
458bool QProcessPrivate::_q_processDied()-
459{-
460 QProcess * const q = q_func();-
461-
462-
463-
464-
465 if (!waitForDeadChild()
!waitForDeadChild()Description
TRUEnever evaluated
FALSEevaluated 1770 times by 29 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
)
0-1770
466 return
never executed: return false;
false;
never executed: return false;
0
467 if (processState == QProcess::Starting
processState =...cess::StartingDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 1748 times by 29 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
) {
22-1748
468 if (!_q_startupNotification()
!_q_startupNotification()Description
TRUEnever evaluated
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_QProcess
)
0-22
469 return
never executed: return true;
true;
never executed: return true;
0
470 }
executed 22 times by 1 test: end of block
Executed by:
  • tst_QProcess
22
471-
472 if (dying
dyingDescription
TRUEnever evaluated
FALSEevaluated 1770 times by 29 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
) {
0-1770
473-
474-
475-
476-
477 return
never executed: return true;
true;
never executed: return true;
0
478 }-
479 dying = true;-
480-
481-
482-
483-
484 _q_canReadStandardOutput();-
485 _q_canReadStandardError();-
486-
487 findExitCode();-
488-
489 if (crashed
crashedDescription
TRUEevaluated 90 times by 5 tests
Evaluated by:
  • tst_QNetworkSession
  • tst_QProcess
  • tst_QSharedMemory
  • tst_QSystemSemaphore
  • tst_Selftests
FALSEevaluated 1680 times by 27 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QMimeDatabase
  • tst_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
  • tst_qprocess - unknown status
  • ...
) {
90-1680
490 exitStatus = QProcess::CrashExit;-
491 setErrorAndEmit(QProcess::Crashed);-
492 }
executed 90 times by 5 tests: end of block
Executed by:
  • tst_QNetworkSession
  • tst_QProcess
  • tst_QSharedMemory
  • tst_QSystemSemaphore
  • tst_Selftests
90
493-
494 bool wasRunning = (processState == QProcess::Running);-
495-
496 cleanup();-
497-
498 if (wasRunning
wasRunningDescription
TRUEevaluated 1769 times by 29 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcess
) {
1-1769
499-
500 q->readChannelFinished();-
501-
502-
503-
504-
505 q->finished(exitCode);-
506 q->finished(exitCode, exitStatus);-
507 }
executed 1769 times by 29 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QMimeDatabase
  • tst_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
  • ...
1769
508-
509-
510-
511 return
executed 1770 times by 29 tests: return true;
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
true;
executed 1770 times by 29 tests: return true;
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
1770
512}-
513-
514-
515-
516-
517bool QProcessPrivate::_q_startupNotification()-
518{-
519 QProcess * const q = q_func();-
520-
521-
522-
523-
524 if (startupSocketNotifier
startupSocketNotifierDescription
TRUEevaluated 2392 times by 36 tests
Evaluated by:
  • tst_Lancelot
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • ...
FALSEevaluated 81 times by 2 tests
Evaluated by:
  • tst_QApplication
  • tst_qdbuscpp2xml
)
81-2392
525 startupSocketNotifier->setEnabled(false);
executed 2392 times by 36 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_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • ...
2392
526 QString errorMessage;-
527 if (processStarted(&errorMessage)
processStarted(&errorMessage)Description
TRUEevaluated 1769 times by 29 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
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-1769
528 q->setProcessState(QProcess::Running);-
529 q->started(QProcess::QPrivateSignal());-
530 return
executed 1769 times by 29 tests: return true;
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
true;
executed 1769 times by 29 tests: return true;
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • ...
1769
531 }-
532-
533 q->setProcessState(QProcess::NotRunning);-
534 setErrorAndEmit(QProcess::FailedToStart, errorMessage);-
535-
536-
537 waitForDeadChild();-
538 findExitCode();-
539-
540 cleanup();-
541 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
542}-
543-
544-
545-
546-
547void QProcessPrivate::closeWriteChannel()-
548{-
549-
550-
551-
552 if (stdinChannel.notifier
stdinChannel.notifierDescription
TRUEevaluated 199 times by 6 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
  • tst_uic
FALSEnever evaluated
) {
0-199
553 delete stdinChannel.notifier;-
554 stdinChannel.notifier = 0;-
555 }
executed 199 times by 6 tests: end of block
Executed by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
  • tst_uic
199
556-
557-
558-
559-
560-
561 closeChannel(&stdinChannel);-
562}
executed 199 times by 6 tests: end of block
Executed by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
  • tst_uic
199
563-
564-
565-
566-
567QProcess::QProcess(QObject *parent)-
568 : QIODevice(*new QProcessPrivate, parent)-
569{-
570-
571-
572-
573}
executed 1730 times by 34 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • ...
1730
574-
575-
576-
577-
578-
579-
580-
581QProcess::~QProcess()-
582{-
583 QProcessPrivate * const d = d_func();-
584 if (d->processState != NotRunning
d->processState != NotRunningDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QNetworkSession
FALSEevaluated 1733 times by 38 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • 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
  • tst_Selftests
  • ...
) {
1-1733
585 QMessageLogger(__FILE__, 1213, __PRETTY_FUNCTION__).warning().nospace()-
586 << "QProcess: Destroyed while process (" << QDir::toNativeSeparators(program()) << ") is still running.";-
587 kill();-
588 waitForFinished();-
589 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QNetworkSession
1
590-
591-
592 d->findExitCode();-
593-
594 d->cleanup();-
595}
executed 1734 times by 39 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • ...
1734
596QProcess::ProcessChannelMode QProcess::readChannelMode() const-
597{-
598 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
599}-
600void QProcess::setReadChannelMode(ProcessChannelMode mode)-
601{-
602 setProcessChannelMode(mode);-
603}
executed 24 times by 4 tests: end of block
Executed by:
  • tst_QLockFile
  • tst_QProcess
  • tst_QUndoGroup
  • tst_QUndoStack
24
604QProcess::ProcessChannelMode QProcess::processChannelMode() const-
605{-
606 const QProcessPrivate * const d = d_func();-
607 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
608}-
609void QProcess::setProcessChannelMode(ProcessChannelMode mode)-
610{-
611 QProcessPrivate * const d = d_func();-
612 d->processChannelMode = mode;-
613}
executed 170 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
170
614QProcess::InputChannelMode QProcess::inputChannelMode() const-
615{-
616 const QProcessPrivate * const d = d_func();-
617 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
618}-
619void QProcess::setInputChannelMode(InputChannelMode mode)-
620{-
621 QProcessPrivate * const d = d_func();-
622 d->inputChannelMode = mode;-
623}
executed 5 times by 1 test: end of block
Executed by:
  • tst_qprocess - unknown status
5
624-
625-
626-
627-
628-
629-
630QProcess::ProcessChannel QProcess::readChannel() const-
631{-
632 const QProcessPrivate * const d = d_func();-
633 return
executed 2245 times by 16 tests: return d->processChannel;
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
d->processChannel;
executed 2245 times by 16 tests: return d->processChannel;
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
2245
634}-
635void QProcess::setReadChannel(ProcessChannel channel)-
636{-
637 QProcessPrivate * const d = d_func();-
638 if (d->processChannel != channel
d->processChannel != channelDescription
TRUEevaluated 3302 times by 15 tests
Evaluated by:
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QProcess
  • tst_QSharedPointer
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
FALSEevaluated 1313 times by 12 tests
Evaluated by:
  • tst_Lancelot
  • tst_QFont
  • tst_QProcess
  • tst_QSharedPointer
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qmake
  • tst_qmakelib
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
) {
1313-3302
639 QByteArray buf = d->buffer.readAll();-
640 if (d->processChannel == QProcess::StandardOutput
d->processChan...StandardOutputDescription
TRUEevaluated 1693 times by 15 tests
Evaluated by:
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QProcess
  • tst_QSharedPointer
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
FALSEevaluated 1609 times by 12 tests
Evaluated by:
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QProcess
  • tst_QSharedPointer
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
) {
1609-1693
641 for (int i = buf.size() - 1; i >= 0
i >= 0Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 1693 times by 15 tests
Evaluated by:
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QProcess
  • tst_QSharedPointer
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
; --i)
7-1693
642 d->stdoutChannel.buffer.ungetChar(buf.at(i));
executed 7 times by 1 test: d->stdoutChannel.buffer.ungetChar(buf.at(i));
Executed by:
  • tst_QProcess
7
643 }
executed 1693 times by 15 tests: end of block
Executed by:
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QProcess
  • tst_QSharedPointer
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
else {
1693
644 for (int i = buf.size() - 1; i >= 0
i >= 0Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 1609 times by 12 tests
Evaluated by:
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QProcess
  • tst_QSharedPointer
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
; --i)
7-1609
645 d->stderrChannel.buffer.ungetChar(buf.at(i));
executed 7 times by 1 test: d->stderrChannel.buffer.ungetChar(buf.at(i));
Executed by:
  • tst_QProcess
7
646 }
executed 1609 times by 12 tests: end of block
Executed by:
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QProcess
  • tst_QSharedPointer
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmakelib
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
1609
647 }-
648 d->processChannel = channel;-
649}
executed 4615 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
4615
650void QProcess::closeReadChannel(ProcessChannel channel)-
651{-
652 QProcessPrivate * const d = d_func();-
653-
654 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
655 d->stdoutChannel.closed = true;
executed 6 times by 1 test: d->stdoutChannel.closed = true;
Executed by:
  • tst_QProcess
6
656 else-
657 d->stderrChannel.closed = true;
executed 6 times by 1 test: d->stderrChannel.closed = true;
Executed by:
  • tst_QProcess
6
658}-
659void QProcess::closeWriteChannel()-
660{-
661 QProcessPrivate * const d = d_func();-
662 d->stdinChannel.closed = true;-
663 if (d->stdinChannel.buffer.isEmpty()
d->stdinChanne...ffer.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 32 times by 5 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QTextCodec
  • tst_QTextStream
  • tst_qprocess - unknown status
)
32-170
664 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
665}
executed 202 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
202
666void QProcess::setStandardInputFile(const QString &fileName)-
667{-
668 QProcessPrivate * const d = d_func();-
669 d->stdinChannel = fileName;-
670}
executed 2 times by 1 test: end of block
Executed by:
  • tst_QProcess
2
671void QProcess::setStandardOutputFile(const QString &fileName, OpenMode mode)-
672{-
673 ((!(mode == Append || mode == Truncate)) ? qt_assert("mode == Append || mode == Truncate",__FILE__,1444) : qt_noop());-
674 QProcessPrivate * const d = d_func();-
675-
676 d->stdoutChannel = fileName;-
677 d->stdoutChannel.append = mode == Append;-
678}
executed 7 times by 1 test: end of block
Executed by:
  • tst_QProcess
7
679void QProcess::setStandardErrorFile(const QString &fileName, OpenMode mode)-
680{-
681 ((!(mode == Append || mode == Truncate)) ? qt_assert("mode == Append || mode == Truncate",__FILE__,1471) : qt_noop());-
682 QProcessPrivate * const d = d_func();-
683-
684 d->stderrChannel = fileName;-
685 d->stderrChannel.append = mode == Append;-
686}
executed 3 times by 1 test: end of block
Executed by:
  • tst_QProcess
3
687void QProcess::setStandardOutputProcess(QProcess *destination)-
688{-
689 QProcessPrivate *dfrom = d_func();-
690 QProcessPrivate *dto = destination->d_func();-
691 dfrom->stdoutChannel.pipeTo(dto);-
692 dto->stdinChannel.pipeFrom(dfrom);-
693}
executed 3 times by 1 test: end of block
Executed by:
  • tst_QProcess
3
694QString QProcess::workingDirectory() const-
695{-
696 const QProcessPrivate * const d = d_func();-
697 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
698}-
699void QProcess::setWorkingDirectory(const QString &dir)-
700{-
701 QProcessPrivate * const d = d_func();-
702 d->workingDirectory = dir;-
703}
executed 87 times by 4 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qmakelib
87
704Q_PID QProcess::pid() const-
705{-
706 const QProcessPrivate * const d = d_func();-
707 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
708}-
709-
710-
711-
712-
713-
714-
715-
716qint64 QProcess::processId() const-
717{-
718 const QProcessPrivate * const d = d_func();-
719-
720-
721-
722 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
723-
724}-
725-
726-
727-
728-
729-
730-
731-
732bool QProcess::canReadLine() const-
733{-
734 const QProcessPrivate * const d = d_func();-
735 const QRingBuffer *readBuffer = (
(d->processCha...StandardError)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcess
d->processChannel == QProcess::StandardError)
(d->processCha...StandardError)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcess
0-1
736 ? &d->stderrChannel.buffer-
737 : &d->stdoutChannel.buffer;-
738 return
executed 1 time by 1 test: return readBuffer->canReadLine() || QIODevice::canReadLine();
Executed by:
  • tst_QProcess
readBuffer->canReadLine()
readBuffer->canReadLine()Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcess
|| QIODevice::canReadLine()
QIODevice::canReadLine()Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcess
;
executed 1 time by 1 test: return readBuffer->canReadLine() || QIODevice::canReadLine();
Executed by:
  • tst_QProcess
0-1
739}-
740-
741-
742-
743-
744-
745-
746void QProcess::close()-
747{-
748 aboutToClose();-
749 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
750 ;
never executed: ;
0
751 kill();-
752 waitForFinished(-1);-
753 QIODevice::close();-
754}
executed 5 times by 5 tests: end of block
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QProcess
5
755-
756-
757-
758-
759-
760-
761bool QProcess::atEnd() const-
762{-
763 const QProcessPrivate * const d = d_func();-
764 const QRingBuffer *readBuffer = (
(d->processCha...StandardError)Description
TRUEnever evaluated
FALSEevaluated 61 times by 3 tests
Evaluated by:
  • tst_Lancelot
  • tst_QNetworkReply
  • tst_QProcess
d->processChannel == QProcess::StandardError)
(d->processCha...StandardError)Description
TRUEnever evaluated
FALSEevaluated 61 times by 3 tests
Evaluated by:
  • tst_Lancelot
  • tst_QNetworkReply
  • tst_QProcess
0-61
765 ? &d->stderrChannel.buffer-
766 : &d->stdoutChannel.buffer;-
767 return
executed 61 times by 3 tests: return QIODevice::atEnd() && (!isOpen() || readBuffer->isEmpty());
Executed by:
  • tst_Lancelot
  • tst_QNetworkReply
  • tst_QProcess
QIODevice::atEnd()
QIODevice::atEnd()Description
TRUEevaluated 53 times by 3 tests
Evaluated by:
  • tst_Lancelot
  • tst_QNetworkReply
  • tst_QProcess
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QProcess
&& (!isOpen()
!isOpen()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 52 times by 3 tests
Evaluated by:
  • tst_Lancelot
  • tst_QNetworkReply
  • tst_QProcess
|| readBuffer->isEmpty()
readBuffer->isEmpty()Description
TRUEevaluated 52 times by 3 tests
Evaluated by:
  • tst_Lancelot
  • tst_QNetworkReply
  • tst_QProcess
FALSEnever evaluated
);
executed 61 times by 3 tests: return QIODevice::atEnd() && (!isOpen() || readBuffer->isEmpty());
Executed by:
  • tst_Lancelot
  • tst_QNetworkReply
  • tst_QProcess
0-61
768}-
769-
770-
771-
772bool QProcess::isSequential() const-
773{-
774 return
executed 1508 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 1508 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
1508
775}-
776-
777-
778-
779qint64 QProcess::bytesAvailable() const-
780{-
781 const QProcessPrivate * const d = d_func();-
782 const QRingBuffer *readBuffer = (
(d->processCha...StandardError)Description
TRUEevaluated 36 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 871 times by 3 tests
Evaluated by:
  • tst_Lancelot
  • tst_QNetworkReply
  • tst_QProcess
d->processChannel == QProcess::StandardError)
(d->processCha...StandardError)Description
TRUEevaluated 36 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 871 times by 3 tests
Evaluated by:
  • tst_Lancelot
  • tst_QNetworkReply
  • tst_QProcess
36-871
783 ? &d->stderrChannel.buffer-
784 : &d->stdoutChannel.buffer;-
785-
786-
787-
788-
789 return
executed 907 times by 3 tests: return readBuffer->size() + QIODevice::bytesAvailable();
Executed by:
  • tst_Lancelot
  • tst_QNetworkReply
  • tst_QProcess
readBuffer->size() + QIODevice::bytesAvailable();
executed 907 times by 3 tests: return readBuffer->size() + QIODevice::bytesAvailable();
Executed by:
  • tst_Lancelot
  • tst_QNetworkReply
  • tst_QProcess
907
790}-
791-
792-
793-
794qint64 QProcess::bytesToWrite() const-
795{-
796 const QProcessPrivate * const d = d_func();-
797 qint64 size = d->stdinChannel.buffer.size();-
798-
799-
800-
801 return
executed 288 times by 2 tests: return size;
Executed by:
  • tst_QProcess
  • tst_qdbusxml2cpp
size;
executed 288 times by 2 tests: return size;
Executed by:
  • tst_QProcess
  • tst_qdbusxml2cpp
288
802}-
803-
804-
805-
806-
807-
808-
809QProcess::ProcessError QProcess::error() const-
810{-
811 const QProcessPrivate * const d = d_func();-
812 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
813}-
814-
815-
816-
817-
818-
819-
820QProcess::ProcessState QProcess::state() const-
821{-
822 const QProcessPrivate * const d = d_func();-
823 return
executed 92 times by 5 tests: return d->processState;
Executed by:
  • tst_QApplication
  • tst_QFile
  • tst_QProcess
  • tst_QSharedPointer
  • tst_QSystemSemaphore
d->processState;
executed 92 times by 5 tests: return d->processState;
Executed by:
  • tst_QApplication
  • tst_QFile
  • tst_QProcess
  • tst_QSharedPointer
  • tst_QSystemSemaphore
92
824}-
825void QProcess::setEnvironment(const QStringList &environment)-
826{-
827 setProcessEnvironment(QProcessEnvironmentPrivate::fromList(environment));-
828}
executed 137 times by 4 tests: end of block
Executed by:
  • tst_QProcess
  • tst_QSharedPointer
  • tst_qmake
  • tst_qmessagehandler
137
829QStringList QProcess::environment() const-
830{-
831 const QProcessPrivate * const d = d_func();-
832 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
833}-
834void QProcess::setProcessEnvironment(const QProcessEnvironment &environment)-
835{-
836 QProcessPrivate * const d = d_func();-
837 d->environment = environment;-
838}
executed 818 times by 6 tests: end of block
Executed by:
  • tst_QProcess
  • tst_QSharedPointer
  • tst_Selftests
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
818
839QProcessEnvironment QProcess::processEnvironment() const-
840{-
841 const QProcessPrivate * const d = d_func();-
842 return
never executed: return d->environment;
d->environment;
never executed: return d->environment;
0
843}-
844bool QProcess::waitForStarted(int msecs)-
845{-
846 QProcessPrivate * const d = d_func();-
847 if (d->processState == QProcess::Starting
d->processStat...cess::StartingDescription
TRUEevaluated 2246 times by 36 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QProcess
)
4-2246
848 return
executed 2246 times by 36 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_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
  • ...
d->waitForStarted(msecs);
executed 2246 times by 36 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_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • ...
2246
849-
850 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
851}-
852-
853-
854-
855bool QProcess::waitForReadyRead(int msecs)-
856{-
857 QProcessPrivate * const d = d_func();-
858-
859 if (d->processState == QProcess::NotRunning
d->processStat...ss::NotRunningDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 744 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-744
860 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
861 if (d->processChannel == QProcess::StandardOutput
d->processChan...StandardOutputDescription
TRUEevaluated 716 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 711 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-716
862 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
863 if (d->processChannel == QProcess::StandardError
d->processChan...:StandardErrorDescription
TRUEevaluated 28 times by 2 tests
Evaluated by:
  • tst_QProcess
  • tst_QTextStream
FALSEevaluated 711 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-711
864 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
865 return
executed 734 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 734 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
734
866}-
867-
868-
869-
870bool QProcess::waitForBytesWritten(int msecs)-
871{-
872 QProcessPrivate * const d = d_func();-
873 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 252 times by 2 tests
Evaluated by:
  • tst_QProcess
  • tst_qdbusxml2cpp
)
4-252
874 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
875 if (d->processState == QProcess::Starting
d->processStat...cess::StartingDescription
TRUEevaluated 105 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 147 times by 2 tests
Evaluated by:
  • tst_QProcess
  • tst_qdbusxml2cpp
) {
105-147
876 QElapsedTimer stopWatch;-
877 stopWatch.start();-
878 bool started = waitForStarted(msecs);-
879 if (!started
!startedDescription
TRUEevaluated 100 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QProcess
)
5-100
880 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
881 msecs = qt_subtract_from_timeout(msecs, stopWatch.elapsed());-
882 }
executed 5 times by 1 test: end of block
Executed by:
  • tst_QProcess
5
883-
884 return
executed 152 times by 2 tests: return d->waitForBytesWritten(msecs);
Executed by:
  • tst_QProcess
  • tst_qdbusxml2cpp
d->waitForBytesWritten(msecs);
executed 152 times by 2 tests: return d->waitForBytesWritten(msecs);
Executed by:
  • tst_QProcess
  • tst_qdbusxml2cpp
152
885}-
886bool QProcess::waitForFinished(int msecs)-
887{-
888 QProcessPrivate * const d = d_func();-
889 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 1823 times by 34 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFont
  • 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
  • tst_QUuid
  • ...
)
5-1823
890 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
891 if (d->processState == QProcess::Starting
d->processStat...cess::StartingDescription
TRUEevaluated 585 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 1238 times by 21 tests
Evaluated by:
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QFont
  • 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
) {
585-1238
892 QElapsedTimer stopWatch;-
893 stopWatch.start();-
894 bool started = waitForStarted(msecs);-
895 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 468 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-468
896 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
897 msecs = qt_subtract_from_timeout(msecs, stopWatch.elapsed());-
898 }
executed 468 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
468
899-
900 return
executed 1706 times by 28 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_QMimeDatabase
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • ...
d->waitForFinished(msecs);
executed 1706 times by 28 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_QMimeDatabase
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QUuid
  • tst_Selftests
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_qmessagehandler
  • ...
1706
901}-
902-
903-
904-
905-
906-
907-
908void QProcess::setProcessState(ProcessState state)-
909{-
910 QProcessPrivate * const d = d_func();-
911 if (d->processState == state
d->processState == stateDescription
TRUEevaluated 2439 times by 39 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • ...
FALSEevaluated 6715 times by 38 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • ...
)
2439-6715
912 return;
executed 2439 times by 39 tests: return;
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
  • tst_QUuid
  • ...
2439
913 d->processState = state;-
914 stateChanged(state, QPrivateSignal());-
915}
executed 6715 times by 38 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • ...
6715
916void QProcess::setupChildProcess()-
917{-
918}-
919-
920-
921-
922qint64 QProcess::readData(char *data, qint64 maxlen)-
923{-
924 QProcessPrivate * const d = d_func();-
925 if (!maxlen
!maxlenDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 4190 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
)
1-4190
926 return
executed 1 time by 1 test: return 0;
Executed by:
  • tst_QProcess
0;
executed 1 time by 1 test: return 0;
Executed by:
  • tst_QProcess
1
927 QRingBuffer *readBuffer = (
(d->processCha...StandardError)Description
TRUEevaluated 1758 times by 13 tests
Evaluated 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
FALSEevaluated 2432 times by 16 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_qmakelib
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
d->processChannel == QProcess::StandardError)
(d->processCha...StandardError)Description
TRUEevaluated 1758 times by 13 tests
Evaluated 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
FALSEevaluated 2432 times by 16 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_qmakelib
  • tst_qprocess - unknown status
  • tst_rcc
  • tst_uic
1758-2432
928 ? &d->stderrChannel.buffer-
929 : &d->stdoutChannel.buffer;-
930-
931 if (maxlen == 1
maxlen == 1Description
TRUEnever evaluated
FALSEevaluated 4190 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
&& !readBuffer->isEmpty()
!readBuffer->isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0-4190
932 int c = readBuffer->getChar();-
933 if (c == -1
c == -1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
934-
935-
936-
937-
938 return
never executed: return -1;
-1;
never executed: return -1;
0
939 }-
940 *data = (char) c;-
941-
942-
943-
944-
945 return
never executed: return 1;
1;
never executed: return 1;
0
946 }-
947-
948 qint64 bytesToRead = qMin(readBuffer->size(), maxlen);-
949 qint64 readSoFar = 0;-
950 while (readSoFar < bytesToRead
readSoFar < bytesToReadDescription
TRUEevaluated 1641 times by 17 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_rcc
  • tst_uic
FALSEevaluated 4190 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
) {
1641-4190
951 const char *ptr = readBuffer->readPointer();-
952 qint64 bytesToReadFromThisBlock = qMin(bytesToRead - readSoFar,-
953 readBuffer->nextDataBlockSize());-
954 memcpy(data + readSoFar, ptr, bytesToReadFromThisBlock);-
955 readSoFar += bytesToReadFromThisBlock;-
956 readBuffer->free(bytesToReadFromThisBlock);-
957 }
executed 1641 times by 17 tests: end of block
Executed 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_rcc
  • tst_uic
1641
958-
959-
960-
961-
962-
963 if (!readSoFar
!readSoFarDescription
TRUEevaluated 2810 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
FALSEevaluated 1380 times by 17 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_rcc
  • tst_uic
&& d->processState == QProcess::NotRunning
d->processStat...ss::NotRunningDescription
TRUEevaluated 2455 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 355 times by 5 tests
Evaluated by:
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
)
355-2810
964 return
executed 2455 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 2455 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
2455
965 return
executed 1735 times by 17 tests: return readSoFar;
Executed 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_rcc
  • tst_uic
readSoFar;
executed 1735 times by 17 tests: return readSoFar;
Executed 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_rcc
  • tst_uic
1735
966}-
967-
968-
969-
970qint64 QProcess::writeData(const char *data, qint64 len)-
971{-
972 QProcessPrivate * const d = d_func();-
973 if (d->stdinChannel.closed
d->stdinChannel.closedDescription
TRUEnever evaluated
FALSEevaluated 735 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-735
974-
975-
976-
977-
978 return
never executed: return 0;
0;
never executed: return 0;
0
979 }-
980 if (len == 1
len == 1Description
TRUEevaluated 35 times by 2 tests
Evaluated by:
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
FALSEevaluated 700 times by 6 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QTextCodec
  • tst_QTextStream
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
) {
35-700
981 d->stdinChannel.buffer.putChar(*data);-
982-
983-
984-
985-
986 if (d->stdinChannel.notifier
d->stdinChannel.notifierDescription
TRUEevaluated 35 times by 2 tests
Evaluated by:
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
FALSEnever evaluated
)
0-35
987 d->stdinChannel.notifier->setEnabled(true);
executed 35 times by 2 tests: d->stdinChannel.notifier->setEnabled(true);
Executed by:
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
35
988-
989-
990-
991-
992-
993 return
executed 35 times by 2 tests: return 1;
Executed by:
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
1;
executed 35 times by 2 tests: return 1;
Executed by:
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
35
994 }-
995-
996 char *dest = d->stdinChannel.buffer.reserve(len);-
997 memcpy(dest, data, len);-
998-
999-
1000-
1001-
1002 if (d->stdinChannel.notifier
d->stdinChannel.notifierDescription
TRUEevaluated 700 times by 6 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QTextCodec
  • tst_QTextStream
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
FALSEnever evaluated
)
0-700
1003 d->stdinChannel.notifier->setEnabled(true);
executed 700 times by 6 tests: d->stdinChannel.notifier->setEnabled(true);
Executed by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QTextCodec
  • tst_QTextStream
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
700
1004-
1005-
1006-
1007-
1008-
1009 return
executed 700 times by 6 tests: return len;
Executed by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QTextCodec
  • tst_QTextStream
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
len;
executed 700 times by 6 tests: return len;
Executed by:
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QTextCodec
  • tst_QTextStream
  • tst_qdbusxml2cpp
  • tst_qprocess - unknown status
700
1010}-
1011QByteArray QProcess::readAllStandardOutput()-
1012{-
1013 ProcessChannel tmp = readChannel();-
1014 setReadChannel(StandardOutput);-
1015 QByteArray data = readAll();-
1016 setReadChannel(tmp);-
1017 return
executed 580 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 580 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
580
1018}-
1019QByteArray QProcess::readAllStandardError()-
1020{-
1021 ProcessChannel tmp = readChannel();-
1022 setReadChannel(StandardError);-
1023 QByteArray data = readAll();-
1024 setReadChannel(tmp);-
1025 return
executed 1662 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 1662 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
1662
1026}-
1027void QProcess::start(const QString &program, const QStringList &arguments, OpenMode mode)-
1028{-
1029 QProcessPrivate * const d = d_func();-
1030 if (d->processState != NotRunning
d->processState != NotRunningDescription
TRUEnever evaluated
FALSEevaluated 2472 times by 38 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • ...
) {
0-2472
1031 QMessageLogger(__FILE__, 2089, __PRETTY_FUNCTION__).warning("QProcess::start: Process is already running");-
1032 return;
never executed: return;
0
1033 }-
1034 if (program.isEmpty()
program.isEmpty()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 2471 times by 38 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • ...
) {
1-2471
1035 d->setErrorAndEmit(QProcess::FailedToStart, tr("No program defined"));-
1036 return;
executed 1 time by 1 test: return;
Executed by:
  • tst_QProcess
1
1037 }-
1038-
1039 d->program = program;-
1040 d->arguments = arguments;-
1041-
1042 d->start(mode);-
1043}
executed 2471 times by 38 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • ...
2471
1044void QProcess::start(OpenMode mode)-
1045{-
1046 QProcessPrivate * const d = d_func();-
1047 if (d->processState != NotRunning
d->processState != NotRunningDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QProcess
) {
0-2
1048 QMessageLogger(__FILE__, 2116, __PRETTY_FUNCTION__).warning("QProcess::start: Process is already running");-
1049 return;
never executed: return;
0
1050 }-
1051 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
1052 d->setErrorAndEmit(QProcess::FailedToStart, tr("No program defined"));-
1053 return;
executed 1 time by 1 test: return;
Executed by:
  • tst_QProcess
1
1054 }-
1055-
1056 d->start(mode);-
1057}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QProcess
1
1058bool QProcess::open(OpenMode mode)-
1059{-
1060 QProcessPrivate * const d = d_func();-
1061 if (d->processState != NotRunning
d->processState != NotRunningDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QProcess
) {
0-2
1062 QMessageLogger(__FILE__, 2140, __PRETTY_FUNCTION__).warning("QProcess::start: Process is already running");-
1063 return
never executed: return false;
false;
never executed: return false;
0
1064 }-
1065 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
1066 QMessageLogger(__FILE__, 2144, __PRETTY_FUNCTION__).warning("QProcess::start: program not set");-
1067 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
1068 }-
1069-
1070 d->start(mode);-
1071 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
1072}-
1073-
1074void QProcessPrivate::start(QIODevice::OpenMode mode)-
1075{-
1076 QProcess * const q = q_func();-
1077-
1078-
1079-
1080-
1081 stdinChannel.buffer.clear();-
1082 stdoutChannel.buffer.clear();-
1083 stderrChannel.buffer.clear();-
1084-
1085 if (stdinChannel.type != QProcessPrivate::Channel::Normal
stdinChannel.t...hannel::NormalDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 2468 times by 38 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • ...
)
5-2468
1086 mode &= ~QIODevice::WriteOnly;
executed 5 times by 1 test: mode &= ~QIODevice::WriteOnly;
Executed by:
  • tst_QProcess
5
1087 if (stdoutChannel.type != QProcessPrivate::Channel::Normal
stdoutChannel....hannel::NormalDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 2464 times by 38 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • ...
&&
9-2464
1088 (stderrChannel.type != QProcessPrivate::Channel::Normal
stderrChannel....hannel::NormalDescription
TRUEnever evaluated
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QProcess
||
0-9
1089 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
1090 mode &= ~QIODevice::ReadOnly;
executed 3 times by 1 test: mode &= ~QIODevice::ReadOnly;
Executed by:
  • tst_QProcess
3
1091 if (mode == 0
mode == 0Description
TRUEnever evaluated
FALSEevaluated 2473 times by 38 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • ...
)
0-2473
1092 mode = QIODevice::Unbuffered;
never executed: mode = QIODevice::Unbuffered;
0
1093-
1094 if ((
(mode & QIODev...ReadOnly) == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 2469 times by 38 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • ...
mode & QIODevice::ReadOnly) == 0
(mode & QIODev...ReadOnly) == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 2469 times by 38 tests
Evaluated by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • ...
) {
4-2469
1095 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
1096 q->setStandardOutputFile(q->nullDevice());
executed 1 time by 1 test: q->setStandardOutputFile(q->nullDevice());
Executed by:
  • tst_QProcess
1
1097 if (stderrChannel.type == QProcessPrivate::Channel::Normal
stderrChannel....hannel::NormalDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEnever evaluated
0-4
1098 && 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
1099 q->setStandardErrorFile(q->nullDevice());
executed 1 time by 1 test: q->setStandardErrorFile(q->nullDevice());
Executed by:
  • tst_QProcess
1
1100 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QProcess
4
1101-
1102-
1103 q->QIODevice::open(mode);-
1104-
1105 stdinChannel.closed = false;-
1106 stdoutChannel.closed = false;-
1107 stderrChannel.closed = false;-
1108-
1109 exitCode = 0;-
1110 exitStatus = QProcess::NormalExit;-
1111 processError = QProcess::UnknownError;-
1112 errorString.clear();-
1113 startProcess();-
1114}
executed 2473 times by 38 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFont
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedMemory
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextStream
  • ...
2473
1115-
1116-
1117static QStringList parseCombinedArgString(const QString &program)-
1118{-
1119 QStringList args;-
1120 QString tmp;-
1121 int quoteCount = 0;-
1122 bool inQuote = false;-
1123-
1124-
1125-
1126-
1127 for (int i = 0; i < program.size()
i < program.size()Description
TRUEevaluated 19433 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 895 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) {
895-19433
1128 if (program.at(i) == QLatin1Char('"')
program.at(i) ...atin1Char('"')Description
TRUEevaluated 372 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 19061 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-19061
1129 ++quoteCount;-
1130 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
1131-
1132 quoteCount = 0;-
1133 tmp += program.at(i);-
1134 }
executed 84 times by 1 test: end of block
Executed by:
  • tst_QProcess
84
1135 continue;
executed 372 times by 1 test: continue;
Executed by:
  • tst_QProcess
372
1136 }-
1137 if (quoteCount
quoteCountDescription
TRUEevaluated 99 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 18962 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-18962
1138 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
1139 inQuote = !inQuote;
executed 93 times by 1 test: inQuote = !inQuote;
Executed by:
  • tst_QProcess
93
1140 quoteCount = 0;-
1141 }
executed 99 times by 1 test: end of block
Executed by:
  • tst_QProcess
99
1142 if (!inQuote
!inQuoteDescription
TRUEevaluated 18167 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 17837 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-18167
1143 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
1144 args += tmp;-
1145 tmp.clear();-
1146 }
executed 317 times by 4 tests: end of block
Executed by:
  • tst_QProcess
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
317
1147 }
executed 330 times by 4 tests: end of block
Executed by:
  • tst_QProcess
  • tst_QUdpSocket
  • tst_QUndoGroup
  • tst_QUndoStack
else {
330
1148 tmp += program.at(i);-
1149 }
executed 18731 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
18731
1150 }-
1151 if (!tmp.isEmpty()
!tmp.isEmpty()Description
TRUEevaluated 885 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-885
1152 args += tmp;
executed 885 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
885
1153-
1154 return
executed 895 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 895 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
895
1155}-
1156void QProcess::start(const QString &command, OpenMode mode)-
1157{-
1158 QStringList args = parseCombinedArgString(command);-
1159 if (args.isEmpty()
args.isEmpty()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QProcess
FALSEevaluated 886 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-886
1160 QProcessPrivate * const d = d_func();-
1161 d->setErrorAndEmit(QProcess::FailedToStart, tr("No program defined"));-
1162 return;
executed 4 times by 1 test: return;
Executed by:
  • tst_QProcess
4
1163 }-
1164-
1165 QString prog = args.first();-
1166 args.removeFirst();-
1167-
1168 start(prog, args, mode);-
1169}
executed 886 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
886
1170QString QProcess::program() const-
1171{-
1172 const QProcessPrivate * const d = d_func();-
1173 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
1174}-
1175void QProcess::setProgram(const QString &program)-
1176{-
1177 QProcessPrivate * const d = d_func();-
1178 if (d->processState != NotRunning
d->processState != NotRunningDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QProcess
) {
0-2
1179 QMessageLogger(__FILE__, 2315, __PRETTY_FUNCTION__).warning("QProcess::setProgram: Process is already running");-
1180 return;
never executed: return;
0
1181 }-
1182 d->program = program;-
1183}
executed 2 times by 1 test: end of block
Executed by:
  • tst_QProcess
2
1184QStringList QProcess::arguments() const-
1185{-
1186 const QProcessPrivate * const d = d_func();-
1187 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
1188}-
1189void QProcess::setArguments(const QStringList &arguments)-
1190{-
1191 QProcessPrivate * const d = d_func();-
1192 if (d->processState != NotRunning
d->processState != NotRunningDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcess
) {
0-1
1193 QMessageLogger(__FILE__, 2346, __PRETTY_FUNCTION__).warning("QProcess::setProgram: Process is already running");-
1194 return;
never executed: return;
0
1195 }-
1196 d->arguments = arguments;-
1197}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QProcess
1
1198void QProcess::terminate()-
1199{-
1200 QProcessPrivate * const d = d_func();-
1201 d->terminateProcess();-
1202}
executed 12 times by 3 tests: end of block
Executed by:
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QProcess
12
1203void QProcess::kill()-
1204{-
1205 QProcessPrivate * const d = d_func();-
1206 d->killProcess();-
1207}
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
1208-
1209-
1210-
1211-
1212-
1213-
1214int QProcess::exitCode() const-
1215{-
1216 const QProcessPrivate * const d = d_func();-
1217 return
executed 829 times by 12 tests: return d->exitCode;
Executed by:
  • tst_Lancelot
  • 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 829 times by 12 tests: return d->exitCode;
Executed by:
  • tst_Lancelot
  • tst_QNetworkSession
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSharedPointer
  • tst_QSystemSemaphore
  • tst_QTextCodec
  • tst_qdbusxml2cpp
  • tst_qmake
  • tst_qmakelib
  • tst_uic
829
1218}-
1219QProcess::ExitStatus QProcess::exitStatus() const-
1220{-
1221 const QProcessPrivate * const d = d_func();-
1222 return
executed 972 times by 10 tests: return d->exitStatus;
Executed by:
  • tst_QApplication
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSystemSemaphore
  • tst_QTextCodec
  • tst_Selftests
  • tst_qmake
  • tst_qmakelib
  • tst_uic
d->exitStatus;
executed 972 times by 10 tests: return d->exitStatus;
Executed by:
  • tst_QApplication
  • tst_QObject
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QSystemSemaphore
  • tst_QTextCodec
  • tst_Selftests
  • tst_qmake
  • tst_qmakelib
  • tst_uic
972
1223}-
1224int QProcess::execute(const QString &program, const QStringList &arguments)-
1225{-
1226 QProcess process;-
1227 process.setReadChannelMode(ForwardedChannels);-
1228 process.start(program, arguments);-
1229 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
1230 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
1231 return
executed 1 time by 1 test: return process.exitStatus() == QProcess::NormalExit ? process.exitCode() : -1;
Executed by:
  • tst_QProcess
process.exitStatus() == QProcess::NormalExit
process.exitSt...ss::NormalExitDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QProcess
FALSEnever evaluated
? process.exitCode() : -1;
executed 1 time by 1 test: return process.exitStatus() == QProcess::NormalExit ? process.exitCode() : -1;
Executed by:
  • tst_QProcess
0-1
1232}-
1233int QProcess::execute(const QString &command)-
1234{-
1235 QProcess process;-
1236 process.setReadChannelMode(ForwardedChannels);-
1237 process.start(command);-
1238 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
1239 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
1240 return
never executed: return process.exitStatus() == QProcess::NormalExit ? process.exitCode() : -1;
process.exitStatus() == QProcess::NormalExit
process.exitSt...ss::NormalExitDescription
TRUEnever evaluated
FALSEnever evaluated
? process.exitCode() : -1;
never executed: return process.exitStatus() == QProcess::NormalExit ? process.exitCode() : -1;
0
1241}-
1242bool QProcess::startDetached(const QString &program,-
1243 const QStringList &arguments,-
1244 const QString &workingDirectory,-
1245 qint64 *pid)-
1246{-
1247 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
1248 arguments,
executed 1 time by 1 test: return QProcessPrivate::startDetached(program, arguments, workingDirectory, pid);
Executed by:
  • tst_QProcess
1
1249 workingDirectory,
executed 1 time by 1 test: return QProcessPrivate::startDetached(program, arguments, workingDirectory, pid);
Executed by:
  • tst_QProcess
1
1250 pid);
executed 1 time by 1 test: return QProcessPrivate::startDetached(program, arguments, workingDirectory, pid);
Executed by:
  • tst_QProcess
1
1251}-
1252-
1253-
1254-
1255-
1256bool QProcess::startDetached(const QString &program,-
1257 const QStringList &arguments)-
1258{-
1259 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
1260}-
1261bool QProcess::startDetached(const QString &command)-
1262{-
1263 QStringList args = parseCombinedArgString(command);-
1264 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
1265 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
1266-
1267 QString prog = args.first();-
1268 args.removeFirst();-
1269-
1270 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
1271}-
1272-
1273-
1274-
1275-
1276-
1277-
1278-
1279-
1280-
1281 extern char **environ;-
1282-
1283-
1284QStringList QProcess::systemEnvironment()-
1285{-
1286 QStringList tmp;-
1287 char *entry = 0;-
1288 int count = 0;-
1289 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
1290 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
1291 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
1292}-
1293QString QProcess::nullDevice()-
1294{-
1295-
1296-
1297-
1298 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
1299-
1300}-
1301-
1302-
Switch to Source codePreprocessed file

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