| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | QStringList 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| TRUE | evaluated 13934 times by 2 testsEvaluated by:- tst_QProcessEnvironment
- tst_Selftests
| | FALSE | evaluated 1954 times by 2 testsEvaluated 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 | returnexecuted 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 | | - |
| 20 | QProcessEnvironment QProcessEnvironmentPrivate::fromList(const QStringList &list) | - |
| 21 | { | - |
| 22 | QProcessEnvironment env; | - |
| 23 | QStringList::ConstIterator it = list.constBegin(), | - |
| 24 | end = list.constEnd(); | - |
| 25 | for ( ; it != end| TRUE | evaluated 4176 times by 4 testsEvaluated by:- tst_QProcess
- tst_QSharedPointer
- tst_qmake
- tst_qmessagehandler
| | FALSE | evaluated 137 times by 4 testsEvaluated by:- tst_QProcess
- tst_QSharedPointer
- tst_qmake
- tst_qmessagehandler
|
; ++it) { | 137-4176 |
| 26 | int pos = it->indexOf(QLatin1Char('='), 1); | - |
| 27 | if (pos < 1| TRUE | never evaluated | | FALSE | evaluated 4176 times by 4 testsEvaluated 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 blockExecuted by:- tst_QProcess
- tst_QSharedPointer
- tst_qmake
- tst_qmessagehandler
| 4176 |
| 35 | returnexecuted 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 | | - |
| 38 | QStringList 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| TRUE | evaluated 41 times by 2 testsEvaluated by:- tst_QProcessEnvironment
- tst_Selftests
| | FALSE | evaluated 5 times by 2 testsEvaluated 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 | returnexecuted 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 | | - |
| 49 | void QProcessEnvironmentPrivate::insert(const QProcessEnvironmentPrivate &other) | - |
| 50 | { | - |
| 51 | Hash::ConstIterator it = other.hash.constBegin(), | - |
| 52 | end = other.hash.constEnd(); | - |
| 53 | for ( ; it != end| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
; ++it) | 2-6 |
| 54 | hash.insert(it.key(), it.value());executed 6 times by 1 test: hash.insert(it.key(), it.value()); | 6 |
| 55 | | - |
| 56 | | - |
| 57 | QHash<QString, Key>::ConstIterator nit = other.nameMap.constBegin(), | - |
| 58 | nend = other.nameMap.constEnd(); | - |
| 59 | for ( ; nit != nend| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
; ++nit) | 2-6 |
| 60 | nameMap.insert(nit.key(), nit.value());executed 6 times by 1 test: nameMap.insert(nit.key(), nit.value()); | 6 |
| 61 | | - |
| 62 | }executed 2 times by 1 test: end of block | 2 |
| 63 | | - |
| 64 | | - |
| 65 | | - |
| 66 | | - |
| 67 | | - |
| 68 | | - |
| 69 | QProcessEnvironment::QProcessEnvironment() | - |
| 70 | : d(0) | - |
| 71 | { | - |
| 72 | }executed 2237 times by 35 tests: end of blockExecuted 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 | | - |
| 77 | QProcessEnvironment::~QProcessEnvironment() | - |
| 78 | { | - |
| 79 | } | - |
| 80 | | - |
| 81 | | - |
| 82 | | - |
| 83 | | - |
| 84 | QProcessEnvironment::QProcessEnvironment(const QProcessEnvironment &other) | - |
| 85 | : d(other.d) | - |
| 86 | { | - |
| 87 | }executed 673 times by 1 test: end of block | 673 |
| 88 | | - |
| 89 | | - |
| 90 | | - |
| 91 | | - |
| 92 | | - |
| 93 | QProcessEnvironment &QProcessEnvironment::operator=(const QProcessEnvironment &other) | - |
| 94 | { | - |
| 95 | d = other.d; | - |
| 96 | returnexecuted 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 | } | - |
| 98 | bool QProcessEnvironment::operator==(const QProcessEnvironment &other) const | - |
| 99 | { | - |
| 100 | if (d == other.d| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 6 times by 1 test |
) | 3-6 |
| 101 | returnexecuted 3 times by 1 test: return true; true;executed 3 times by 1 test: return true; | 3 |
| 102 | if (d| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
) { | 0-6 |
| 103 | if (other.d| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 1 time by 1 test |
) { | 1-5 |
| 104 | QProcessEnvironmentPrivate::OrderedMutexLocker locker(d, other.d); | - |
| 105 | returnexecuted 5 times by 1 test: return d->hash == other.d->hash; d->hash == other.d->hash;executed 5 times by 1 test: return d->hash == other.d->hash; | 5 |
| 106 | } else { | - |
| 107 | returnexecuted 1 time by 1 test: return isEmpty(); isEmpty();executed 1 time by 1 test: return isEmpty(); | 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 | | - |
| 120 | bool QProcessEnvironment::isEmpty() const | - |
| 121 | { | - |
| 122 | | - |
| 123 | returnexecuted 684 times by 4 tests: return d ? d->hash.isEmpty() : true;Executed by:- tst_QProcess
- tst_QProcessEnvironment
- tst_Selftests
- tst_qmakelib
d| TRUE | evaluated 681 times by 4 testsEvaluated by:- tst_QProcess
- tst_QProcessEnvironment
- tst_Selftests
- tst_qmakelib
| | FALSE | evaluated 3 times by 2 testsEvaluated 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 | | - |
| 132 | void QProcessEnvironment::clear() | - |
| 133 | { | - |
| 134 | if (d| TRUE | evaluated 7 times by 1 test | | FALSE | never evaluated |
) | 0-7 |
| 135 | d->hash.clear();executed 7 times by 1 test: d->hash.clear(); | 7 |
| 136 | | - |
| 137 | | - |
| 138 | }executed 7 times by 1 test: end of block | 7 |
| 139 | bool QProcessEnvironment::contains(const QString &name) const | - |
| 140 | { | - |
| 141 | if (!d| TRUE | never evaluated | | FALSE | evaluated 14 times by 2 testsEvaluated 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 | returnexecuted 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 | } | - |
| 146 | void 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 blockExecuted by:- tst_QProcess
- tst_QProcessEnvironment
- tst_QSharedPointer
- tst_Selftests
- tst_qmake
- tst_qmakelib
- tst_qmessagehandler
| 4353 |
| 152 | void QProcessEnvironment::remove(const QString &name) | - |
| 153 | { | - |
| 154 | if (d| TRUE | evaluated 3 times by 2 testsEvaluated by:- tst_QProcess
- tst_QProcessEnvironment
| | FALSE | never evaluated |
) { | 0-3 |
| 155 | d.detach(); | - |
| 156 | d->hash.remove(d->prepareName(name)); | - |
| 157 | }executed 3 times by 2 tests: end of blockExecuted by:- tst_QProcess
- tst_QProcessEnvironment
| 3 |
| 158 | }executed 3 times by 2 tests: end of blockExecuted by:- tst_QProcess
- tst_QProcessEnvironment
| 3 |
| 159 | QString QProcessEnvironment::value(const QString &name, const QString &defaultValue) const | - |
| 160 | { | - |
| 161 | if (!d| TRUE | never evaluated | | FALSE | evaluated 38 times by 3 testsEvaluated 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()| TRUE | evaluated 10 times by 2 testsEvaluated by:- tst_QProcessEnvironment
- tst_qmakelib
| | FALSE | evaluated 28 times by 3 testsEvaluated by:- tst_QProcessEnvironment
- tst_Selftests
- tst_qmakelib
|
) | 10-28 |
| 167 | returnexecuted 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 | returnexecuted 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 | } | - |
| 171 | QStringList QProcessEnvironment::toStringList() const | - |
| 172 | { | - |
| 173 | if (!d| TRUE | evaluated 2 times by 2 testsEvaluated by:- tst_QProcess
- tst_QProcessEnvironment
| | FALSE | evaluated 1954 times by 2 testsEvaluated by:- tst_QProcessEnvironment
- tst_Selftests
|
) | 2-1954 |
| 174 | returnexecuted 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 | returnexecuted 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 | | - |
| 185 | QStringList QProcessEnvironment::keys() const | - |
| 186 | { | - |
| 187 | if (!d| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 5 times by 2 testsEvaluated by:- tst_QProcessEnvironment
- tst_Selftests
|
) | 1-5 |
| 188 | returnexecuted 1 time by 1 test: return QStringList(); QStringList();executed 1 time by 1 test: return QStringList(); | 1 |
| 189 | QProcessEnvironmentPrivate::MutexLocker locker(d); | - |
| 190 | returnexecuted 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 | } | - |
| 192 | void QProcessEnvironment::insert(const QProcessEnvironment &e) | - |
| 193 | { | - |
| 194 | if (!e.d| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
) | 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 | 2 |
| 201 | | - |
| 202 | void QProcessPrivate::Channel::clear() | - |
| 203 | { | - |
| 204 | switch (type) { | - |
| 205 | caseexecuted 3 times by 1 test: case PipeSource: PipeSource:executed 3 times by 1 test: case PipeSource: | 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; | 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 | 21 |
| 221 | QProcessPrivate::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 blockExecuted 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 | | - |
| 251 | QProcessPrivate::~QProcessPrivate() | - |
| 252 | { | - |
| 253 | if (stdinChannel.process| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 1731 times by 39 testsEvaluated 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(); | 3 |
| 255 | if (stdoutChannel.process| TRUE | never evaluated | | FALSE | evaluated 1734 times by 39 testsEvaluated 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 blockExecuted 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 | | - |
| 262 | void QProcessPrivate::cleanup() | - |
| 263 | { | - |
| 264 | q_func()->setProcessState(QProcess::NotRunning); | - |
| 265 | pid = 0; | - |
| 266 | sequenceNumber = 0; | - |
| 267 | dying = false; | - |
| 268 | | - |
| 269 | if (stdoutChannel.notifier| TRUE | evaluated 2382 times by 36 testsEvaluated by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_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
- ...
| | FALSE | evaluated 1826 times by 39 testsEvaluated 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 blockExecuted by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_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| TRUE | evaluated 2373 times by 35 testsEvaluated by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_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
- ...
| | FALSE | evaluated 1835 times by 39 testsEvaluated 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 blockExecuted by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_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| TRUE | evaluated 2188 times by 33 testsEvaluated by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_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
- ...
| | FALSE | evaluated 2020 times by 39 testsEvaluated 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 blockExecuted by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_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| TRUE | never evaluated | | FALSE | evaluated 4208 times by 43 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_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| TRUE | never evaluated | | FALSE | evaluated 4208 times by 43 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_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| TRUE | never evaluated | | FALSE | evaluated 4208 times by 43 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_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 blockExecuted by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_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 | | - |
| 303 | void QProcessPrivate::setError(QProcess::ProcessError error, const QString &description) | - |
| 304 | { | - |
| 305 | processError = error; | - |
| 306 | if (description.isEmpty()| TRUE | evaluated 104 times by 6 testsEvaluated by:- tst_QNetworkSession
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QSharedMemory
- tst_QSystemSemaphore
- tst_Selftests
| | FALSE | evaluated 710 times by 11 testsEvaluated by:- tst_QCommandLineParser
- tst_QFile
- tst_QLockFile
- tst_QProcess
- tst_QSharedPointer
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- tst_QUndoGroup
- tst_QUndoStack
|
) { | 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 | caseexecuted 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 | caseexecuted 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 | caseexecuted 5 times by 1 test: case QProcess::WriteError: QProcess::WriteError:executed 5 times by 1 test: case QProcess::WriteError: | 5 |
| 321 | errorString = QProcess::tr("Error writing to process"); | - |
| 322 | break;executed 5 times by 1 test: break; | 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 blockExecuted 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 blockExecuted 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 | | - |
| 335 | void 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 blockExecuted 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 | | - |
| 348 | bool QProcessPrivate::tryReadFromChannel(Channel *channel) | - |
| 349 | { | - |
| 350 | QProcess * const q = q_func(); | - |
| 351 | if (channel->pipe[0] == -1| TRUE | evaluated 3534 times by 29 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- tst_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 | evaluated 38181 times by 29 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- tst_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 | returnexecuted 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| TRUE | evaluated 3509 times by 29 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- tst_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 | evaluated 34672 times by 25 testsEvaluated 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| TRUE | evaluated 3509 times by 29 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- tst_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 | evaluated 34672 times by 25 testsEvaluated 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| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 38179 times by 29 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- tst_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 | returnexecuted 2 times by 1 test: return false; false;executed 2 times by 1 test: return false; | 2 |
| 365 | } | - |
| 366 | if (readBytes == -1| TRUE | never evaluated | | FALSE | evaluated 38179 times by 29 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- tst_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| TRUE | evaluated 3507 times by 29 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- tst_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 | evaluated 34672 times by 25 testsEvaluated 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| TRUE | evaluated 3345 times by 27 testsEvaluated 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
- ...
| | FALSE | evaluated 162 times by 2 testsEvaluated 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 | returnexecuted 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| TRUE | evaluated 40 times by 1 test | | FALSE | evaluated 34632 times by 25 testsEvaluated 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 | returnexecuted 40 times by 1 test: return false; false;executed 40 times by 1 test: return false; | 40 |
| 391 | } | - |
| 392 | | - |
| 393 | channel->buffer.chop(available - readBytes); | - |
| 394 | | - |
| 395 | bool didRead = false; | - |
| 396 | bool isStdout = channel == &stdoutChannel; | - |
| 397 | if (readBytes == 0| TRUE | never evaluated | | FALSE | evaluated 34632 times by 25 testsEvaluated 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| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 399 | channel->notifier->setEnabled(false); never executed: channel->notifier->setEnabled(false); | 0 |
| 400 | } never executed: end of block else if ((| TRUE | evaluated 33489 times by 22 testsEvaluated 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
| | FALSE | evaluated 1143 times by 10 testsEvaluated 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| TRUE | evaluated 33489 times by 22 testsEvaluated 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
| | FALSE | evaluated 1143 times by 10 testsEvaluated 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| TRUE | evaluated 33488 times by 22 testsEvaluated 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
| | FALSE | evaluated 1 time by 1 test |
) { | 1-33488 |
| 403 | emittedReadyRead = true; | - |
| 404 | q->readyRead(); | - |
| 405 | emittedReadyRead = false; | - |
| 406 | }executed 33488 times by 22 tests: end of blockExecuted 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 blockExecuted 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| TRUE | evaluated 33864 times by 22 testsEvaluated 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
| | FALSE | evaluated 768 times by 10 testsEvaluated 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 | returnexecuted 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 | | - |
| 418 | bool QProcessPrivate::_q_canReadStandardOutput() | - |
| 419 | { | - |
| 420 | returnexecuted 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 | | - |
| 426 | bool QProcessPrivate::_q_canReadStandardError() | - |
| 427 | { | - |
| 428 | returnexecuted 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 | | - |
| 434 | bool QProcessPrivate::_q_canWrite() | - |
| 435 | { | - |
| 436 | if (stdinChannel.notifier| TRUE | evaluated 629 times by 6 testsEvaluated by:- tst_QNetworkReply
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QTextStream
- tst_qdbusxml2cpp
- tst_qprocess - unknown status
| | FALSE | never evaluated |
) | 0-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()| TRUE | never evaluated | | FALSE | evaluated 629 times by 6 testsEvaluated 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| TRUE | evaluated 629 times by 6 testsEvaluated by:- tst_QNetworkReply
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QTextStream
- tst_qdbusxml2cpp
- tst_qprocess - unknown status
| | FALSE | never evaluated |
&& !stdinChannel.buffer.isEmpty()| TRUE | evaluated 146 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_QProcess
| | FALSE | evaluated 483 times by 6 testsEvaluated 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()| TRUE | evaluated 483 times by 6 testsEvaluated by:- tst_QNetworkReply
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QTextStream
- tst_qdbusxml2cpp
- tst_qprocess - unknown status
| | FALSE | evaluated 146 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_QProcess
|
&& stdinChannel.closed| TRUE | evaluated 29 times by 3 testsEvaluated by:- tst_QNetworkReply
- tst_QProcess
- tst_qprocess - unknown status
| | FALSE | evaluated 454 times by 4 testsEvaluated 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 | returnexecuted 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 | | - |
| 458 | bool QProcessPrivate::_q_processDied() | - |
| 459 | { | - |
| 460 | QProcess * const q = q_func(); | - |
| 461 | | - |
| 462 | | - |
| 463 | | - |
| 464 | | - |
| 465 | if (!waitForDeadChild()| TRUE | never evaluated | | FALSE | evaluated 1770 times by 29 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- tst_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| TRUE | evaluated 22 times by 1 test | | FALSE | evaluated 1748 times by 29 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- tst_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()| TRUE | never evaluated | | FALSE | evaluated 22 times by 1 test |
) | 0-22 |
| 469 | return never executed: return true; true;never executed: return true; | 0 |
| 470 | }executed 22 times by 1 test: end of block | 22 |
| 471 | | - |
| 472 | if (dying| TRUE | never evaluated | | FALSE | evaluated 1770 times by 29 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- tst_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| TRUE | evaluated 90 times by 5 testsEvaluated by:- tst_QNetworkSession
- tst_QProcess
- tst_QSharedMemory
- tst_QSystemSemaphore
- tst_Selftests
| | FALSE | evaluated 1680 times by 27 testsEvaluated 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 blockExecuted 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| TRUE | evaluated 1769 times by 29 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- tst_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 | evaluated 1 time by 1 test |
) { | 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 blockExecuted 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 | returnexecuted 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 | | - |
| 517 | bool QProcessPrivate::_q_startupNotification() | - |
| 518 | { | - |
| 519 | QProcess * const q = q_func(); | - |
| 520 | | - |
| 521 | | - |
| 522 | | - |
| 523 | | - |
| 524 | if (startupSocketNotifier| TRUE | evaluated 2392 times by 36 testsEvaluated by:- tst_Lancelot
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_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
- ...
| | FALSE | evaluated 81 times by 2 testsEvaluated 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)| TRUE | evaluated 1769 times by 29 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFont
- tst_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 | evaluated 704 times by 11 testsEvaluated by:- tst_QCommandLineParser
- tst_QFile
- tst_QLockFile
- tst_QProcess
- tst_QSharedPointer
- tst_QTcpSocket
- tst_QTextCodec
- tst_QTextStream
- tst_QUdpSocket
- tst_QUndoGroup
- tst_QUndoStack
|
) { | 704-1769 |
| 528 | q->setProcessState(QProcess::Running); | - |
| 529 | q->started(QProcess::QPrivateSignal()); | - |
| 530 | returnexecuted 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 | returnexecuted 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 | | - |
| 547 | void QProcessPrivate::closeWriteChannel() | - |
| 548 | { | - |
| 549 | | - |
| 550 | | - |
| 551 | | - |
| 552 | if (stdinChannel.notifier| TRUE | evaluated 199 times by 6 testsEvaluated by:- tst_QNetworkReply
- tst_QProcess
- tst_QSharedPointer
- tst_qdbusxml2cpp
- tst_qprocess - unknown status
- tst_uic
| | FALSE | never evaluated |
) { | 0-199 |
| 553 | delete stdinChannel.notifier; | - |
| 554 | stdinChannel.notifier = 0; | - |
| 555 | }executed 199 times by 6 tests: end of blockExecuted 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 blockExecuted by:- tst_QNetworkReply
- tst_QProcess
- tst_QSharedPointer
- tst_qdbusxml2cpp
- tst_qprocess - unknown status
- tst_uic
| 199 |
| 563 | | - |
| 564 | | - |
| 565 | | - |
| 566 | | - |
| 567 | QProcess::QProcess(QObject *parent) | - |
| 568 | : QIODevice(*new QProcessPrivate, parent) | - |
| 569 | { | - |
| 570 | | - |
| 571 | | - |
| 572 | | - |
| 573 | }executed 1730 times by 34 tests: end of blockExecuted 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 | | - |
| 581 | QProcess::~QProcess() | - |
| 582 | { | - |
| 583 | QProcessPrivate * const d = d_func(); | - |
| 584 | if (d->processState != NotRunning| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 1733 times by 38 testsEvaluated 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 | 1 |
| 590 | | - |
| 591 | | - |
| 592 | d->findExitCode(); | - |
| 593 | | - |
| 594 | d->cleanup(); | - |
| 595 | }executed 1734 times by 39 tests: end of blockExecuted 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 |
| 596 | QProcess::ProcessChannelMode QProcess::readChannelMode() const | - |
| 597 | { | - |
| 598 | returnexecuted 4 times by 1 test: return processChannelMode(); processChannelMode();executed 4 times by 1 test: return processChannelMode(); | 4 |
| 599 | } | - |
| 600 | void QProcess::setReadChannelMode(ProcessChannelMode mode) | - |
| 601 | { | - |
| 602 | setProcessChannelMode(mode); | - |
| 603 | }executed 24 times by 4 tests: end of blockExecuted by:- tst_QLockFile
- tst_QProcess
- tst_QUndoGroup
- tst_QUndoStack
| 24 |
| 604 | QProcess::ProcessChannelMode QProcess::processChannelMode() const | - |
| 605 | { | - |
| 606 | const QProcessPrivate * const d = d_func(); | - |
| 607 | returnexecuted 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 | } | - |
| 609 | void QProcess::setProcessChannelMode(ProcessChannelMode mode) | - |
| 610 | { | - |
| 611 | QProcessPrivate * const d = d_func(); | - |
| 612 | d->processChannelMode = mode; | - |
| 613 | }executed 170 times by 14 tests: end of blockExecuted 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 |
| 614 | QProcess::InputChannelMode QProcess::inputChannelMode() const | - |
| 615 | { | - |
| 616 | const QProcessPrivate * const d = d_func(); | - |
| 617 | returnexecuted 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 | } | - |
| 619 | void QProcess::setInputChannelMode(InputChannelMode mode) | - |
| 620 | { | - |
| 621 | QProcessPrivate * const d = d_func(); | - |
| 622 | d->inputChannelMode = mode; | - |
| 623 | }executed 5 times by 1 test: end of blockExecuted by:- tst_qprocess - unknown status
| 5 |
| 624 | | - |
| 625 | | - |
| 626 | | - |
| 627 | | - |
| 628 | | - |
| 629 | | - |
| 630 | QProcess::ProcessChannel QProcess::readChannel() const | - |
| 631 | { | - |
| 632 | const QProcessPrivate * const d = d_func(); | - |
| 633 | returnexecuted 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 | } | - |
| 635 | void QProcess::setReadChannel(ProcessChannel channel) | - |
| 636 | { | - |
| 637 | QProcessPrivate * const d = d_func(); | - |
| 638 | if (d->processChannel != channel| TRUE | evaluated 3302 times by 15 testsEvaluated 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
| | FALSE | evaluated 1313 times by 12 testsEvaluated 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| TRUE | evaluated 1693 times by 15 testsEvaluated 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
| | FALSE | evaluated 1609 times by 12 testsEvaluated 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| TRUE | evaluated 7 times by 1 test | | FALSE | evaluated 1693 times by 15 testsEvaluated 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)); | 7 |
| 643 | }executed 1693 times by 15 tests: end of blockExecuted 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| TRUE | evaluated 7 times by 1 test | | FALSE | evaluated 1609 times by 12 testsEvaluated 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)); | 7 |
| 646 | }executed 1609 times by 12 tests: end of blockExecuted 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 blockExecuted 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 |
| 650 | void QProcess::closeReadChannel(ProcessChannel channel) | - |
| 651 | { | - |
| 652 | QProcessPrivate * const d = d_func(); | - |
| 653 | | - |
| 654 | if (channel == StandardOutput| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 6 times by 1 test |
) | 6 |
| 655 | d->stdoutChannel.closed = true;executed 6 times by 1 test: d->stdoutChannel.closed = true; | 6 |
| 656 | else | - |
| 657 | d->stderrChannel.closed = true;executed 6 times by 1 test: d->stderrChannel.closed = true; | 6 |
| 658 | } | - |
| 659 | void QProcess::closeWriteChannel() | - |
| 660 | { | - |
| 661 | QProcessPrivate * const d = d_func(); | - |
| 662 | d->stdinChannel.closed = true; | - |
| 663 | if (d->stdinChannel.buffer.isEmpty()| TRUE | evaluated 170 times by 6 testsEvaluated by:- tst_QNetworkReply
- tst_QProcess
- tst_QSharedPointer
- tst_qdbusxml2cpp
- tst_qprocess - unknown status
- tst_uic
| | FALSE | evaluated 32 times by 5 testsEvaluated 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 blockExecuted by:- tst_QNetworkReply
- tst_QProcess
- tst_QSharedPointer
- tst_QTextCodec
- tst_QTextStream
- tst_qdbusxml2cpp
- tst_qprocess - unknown status
- tst_uic
| 202 |
| 666 | void 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 | 2 |
| 671 | void 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 | 7 |
| 679 | void 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 | 3 |
| 687 | void 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 | 3 |
| 694 | QString QProcess::workingDirectory() const | - |
| 695 | { | - |
| 696 | const QProcessPrivate * const d = d_func(); | - |
| 697 | returnexecuted 1 time by 1 test: return d->workingDirectory; d->workingDirectory;executed 1 time by 1 test: return d->workingDirectory; | 1 |
| 698 | } | - |
| 699 | void 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 blockExecuted by:- tst_Lancelot
- tst_QProcess
- tst_QSharedPointer
- tst_qmakelib
| 87 |
| 704 | Q_PID QProcess::pid() const | - |
| 705 | { | - |
| 706 | const QProcessPrivate * const d = d_func(); | - |
| 707 | returnexecuted 1 time by 1 test: return d->pid; d->pid;executed 1 time by 1 test: return d->pid; | 1 |
| 708 | } | - |
| 709 | | - |
| 710 | | - |
| 711 | | - |
| 712 | | - |
| 713 | | - |
| 714 | | - |
| 715 | | - |
| 716 | qint64 QProcess::processId() const | - |
| 717 | { | - |
| 718 | const QProcessPrivate * const d = d_func(); | - |
| 719 | | - |
| 720 | | - |
| 721 | | - |
| 722 | returnexecuted 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 | | - |
| 732 | bool QProcess::canReadLine() const | - |
| 733 | { | - |
| 734 | const QProcessPrivate * const d = d_func(); | - |
| 735 | const QRingBuffer *readBuffer = (| TRUE | never evaluated | | FALSE | evaluated 1 time by 1 test |
d->processChannel == QProcess::StandardError)| TRUE | never evaluated | | FALSE | evaluated 1 time by 1 test |
| 0-1 |
| 736 | ? &d->stderrChannel.buffer | - |
| 737 | : &d->stdoutChannel.buffer; | - |
| 738 | returnexecuted 1 time by 1 test: return readBuffer->canReadLine() || QIODevice::canReadLine(); readBuffer->canReadLine()| TRUE | never evaluated | | FALSE | evaluated 1 time by 1 test |
|| QIODevice::canReadLine()| TRUE | never evaluated | | FALSE | evaluated 1 time by 1 test |
;executed 1 time by 1 test: return readBuffer->canReadLine() || QIODevice::canReadLine(); | 0-1 |
| 739 | } | - |
| 740 | | - |
| 741 | | - |
| 742 | | - |
| 743 | | - |
| 744 | | - |
| 745 | | - |
| 746 | void QProcess::close() | - |
| 747 | { | - |
| 748 | aboutToClose(); | - |
| 749 | while (waitForBytesWritten(-1)| TRUE | never evaluated | | FALSE | evaluated 5 times by 5 testsEvaluated 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 blockExecuted by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
| 5 |
| 755 | | - |
| 756 | | - |
| 757 | | - |
| 758 | | - |
| 759 | | - |
| 760 | | - |
| 761 | bool QProcess::atEnd() const | - |
| 762 | { | - |
| 763 | const QProcessPrivate * const d = d_func(); | - |
| 764 | const QRingBuffer *readBuffer = (| TRUE | never evaluated | | FALSE | evaluated 61 times by 3 testsEvaluated by:- tst_Lancelot
- tst_QNetworkReply
- tst_QProcess
|
d->processChannel == QProcess::StandardError)| TRUE | never evaluated | | FALSE | evaluated 61 times by 3 testsEvaluated by:- tst_Lancelot
- tst_QNetworkReply
- tst_QProcess
|
| 0-61 |
| 765 | ? &d->stderrChannel.buffer | - |
| 766 | : &d->stdoutChannel.buffer; | - |
| 767 | returnexecuted 61 times by 3 tests: return QIODevice::atEnd() && (!isOpen() || readBuffer->isEmpty());Executed by:- tst_Lancelot
- tst_QNetworkReply
- tst_QProcess
QIODevice::atEnd()| TRUE | evaluated 53 times by 3 testsEvaluated by:- tst_Lancelot
- tst_QNetworkReply
- tst_QProcess
| | FALSE | evaluated 8 times by 1 test |
&& (!isOpen()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 52 times by 3 testsEvaluated by:- tst_Lancelot
- tst_QNetworkReply
- tst_QProcess
|
|| readBuffer->isEmpty()| TRUE | evaluated 52 times by 3 testsEvaluated by:- tst_Lancelot
- tst_QNetworkReply
- tst_QProcess
| | FALSE | never 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 | | - |
| 772 | bool QProcess::isSequential() const | - |
| 773 | { | - |
| 774 | returnexecuted 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 | | - |
| 779 | qint64 QProcess::bytesAvailable() const | - |
| 780 | { | - |
| 781 | const QProcessPrivate * const d = d_func(); | - |
| 782 | const QRingBuffer *readBuffer = (| TRUE | evaluated 36 times by 1 test | | FALSE | evaluated 871 times by 3 testsEvaluated by:- tst_Lancelot
- tst_QNetworkReply
- tst_QProcess
|
d->processChannel == QProcess::StandardError)| TRUE | evaluated 36 times by 1 test | | FALSE | evaluated 871 times by 3 testsEvaluated by:- tst_Lancelot
- tst_QNetworkReply
- tst_QProcess
|
| 36-871 |
| 783 | ? &d->stderrChannel.buffer | - |
| 784 | : &d->stdoutChannel.buffer; | - |
| 785 | | - |
| 786 | | - |
| 787 | | - |
| 788 | | - |
| 789 | returnexecuted 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 | | - |
| 794 | qint64 QProcess::bytesToWrite() const | - |
| 795 | { | - |
| 796 | const QProcessPrivate * const d = d_func(); | - |
| 797 | qint64 size = d->stdinChannel.buffer.size(); | - |
| 798 | | - |
| 799 | | - |
| 800 | | - |
| 801 | returnexecuted 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 | | - |
| 809 | QProcess::ProcessError QProcess::error() const | - |
| 810 | { | - |
| 811 | const QProcessPrivate * const d = d_func(); | - |
| 812 | returnexecuted 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 | | - |
| 820 | QProcess::ProcessState QProcess::state() const | - |
| 821 | { | - |
| 822 | const QProcessPrivate * const d = d_func(); | - |
| 823 | returnexecuted 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 | } | - |
| 825 | void QProcess::setEnvironment(const QStringList &environment) | - |
| 826 | { | - |
| 827 | setProcessEnvironment(QProcessEnvironmentPrivate::fromList(environment)); | - |
| 828 | }executed 137 times by 4 tests: end of blockExecuted by:- tst_QProcess
- tst_QSharedPointer
- tst_qmake
- tst_qmessagehandler
| 137 |
| 829 | QStringList QProcess::environment() const | - |
| 830 | { | - |
| 831 | const QProcessPrivate * const d = d_func(); | - |
| 832 | returnexecuted 1 time by 1 test: return d->environment.toStringList(); d->environment.toStringList();executed 1 time by 1 test: return d->environment.toStringList(); | 1 |
| 833 | } | - |
| 834 | void 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 blockExecuted by:- tst_QProcess
- tst_QSharedPointer
- tst_Selftests
- tst_qmake
- tst_qmakelib
- tst_qmessagehandler
| 818 |
| 839 | QProcessEnvironment 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 | } | - |
| 844 | bool QProcess::waitForStarted(int msecs) | - |
| 845 | { | - |
| 846 | QProcessPrivate * const d = d_func(); | - |
| 847 | if (d->processState == QProcess::Starting| TRUE | evaluated 2246 times by 36 testsEvaluated 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
- ...
| | FALSE | evaluated 4 times by 1 test |
) | 4-2246 |
| 848 | returnexecuted 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 | returnexecuted 4 times by 1 test: return d->processState == QProcess::Running; d->processState == QProcess::Running;executed 4 times by 1 test: return d->processState == QProcess::Running; | 4 |
| 851 | } | - |
| 852 | | - |
| 853 | | - |
| 854 | | - |
| 855 | bool QProcess::waitForReadyRead(int msecs) | - |
| 856 | { | - |
| 857 | QProcessPrivate * const d = d_func(); | - |
| 858 | | - |
| 859 | if (d->processState == QProcess::NotRunning| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 744 times by 9 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
- tst_QTextStream
|
) | 1-744 |
| 860 | returnexecuted 1 time by 1 test: return false; false;executed 1 time by 1 test: return false; | 1 |
| 861 | if (d->processChannel == QProcess::StandardOutput| TRUE | evaluated 716 times by 8 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
| | FALSE | evaluated 28 times by 2 testsEvaluated by:- tst_QProcess
- tst_QTextStream
|
&& d->stdoutChannel.closed| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 711 times by 8 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
|
) | 5-716 |
| 862 | returnexecuted 5 times by 1 test: return false; false;executed 5 times by 1 test: return false; | 5 |
| 863 | if (d->processChannel == QProcess::StandardError| TRUE | evaluated 28 times by 2 testsEvaluated by:- tst_QProcess
- tst_QTextStream
| | FALSE | evaluated 711 times by 8 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
|
&& d->stderrChannel.closed| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 23 times by 2 testsEvaluated by:- tst_QProcess
- tst_QTextStream
|
) | 5-711 |
| 864 | returnexecuted 5 times by 1 test: return false; false;executed 5 times by 1 test: return false; | 5 |
| 865 | returnexecuted 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 | | - |
| 870 | bool QProcess::waitForBytesWritten(int msecs) | - |
| 871 | { | - |
| 872 | QProcessPrivate * const d = d_func(); | - |
| 873 | if (d->processState == QProcess::NotRunning| TRUE | evaluated 4 times by 4 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusInterface
- tst_QDBusMarshall
| | FALSE | evaluated 252 times by 2 testsEvaluated by:- tst_QProcess
- tst_qdbusxml2cpp
|
) | 4-252 |
| 874 | returnexecuted 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| TRUE | evaluated 105 times by 1 test | | FALSE | evaluated 147 times by 2 testsEvaluated by:- tst_QProcess
- tst_qdbusxml2cpp
|
) { | 105-147 |
| 876 | QElapsedTimer stopWatch; | - |
| 877 | stopWatch.start(); | - |
| 878 | bool started = waitForStarted(msecs); | - |
| 879 | if (!started| TRUE | evaluated 100 times by 1 test | | FALSE | evaluated 5 times by 1 test |
) | 5-100 |
| 880 | returnexecuted 100 times by 1 test: return false; false;executed 100 times by 1 test: return false; | 100 |
| 881 | msecs = qt_subtract_from_timeout(msecs, stopWatch.elapsed()); | - |
| 882 | }executed 5 times by 1 test: end of block | 5 |
| 883 | | - |
| 884 | returnexecuted 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 | } | - |
| 886 | bool QProcess::waitForFinished(int msecs) | - |
| 887 | { | - |
| 888 | QProcessPrivate * const d = d_func(); | - |
| 889 | if (d->processState == QProcess::NotRunning| TRUE | evaluated 5 times by 5 testsEvaluated by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QProcess
| | FALSE | evaluated 1823 times by 34 testsEvaluated 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 | returnexecuted 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| TRUE | evaluated 585 times by 15 testsEvaluated 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
| | FALSE | evaluated 1238 times by 21 testsEvaluated 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| TRUE | evaluated 117 times by 7 testsEvaluated by:- tst_QCommandLineParser
- tst_QLockFile
- tst_QProcess
- tst_QTextCodec
- tst_QTextStream
- tst_QUndoGroup
- tst_QUndoStack
| | FALSE | evaluated 468 times by 9 testsEvaluated by:- tst_Lancelot
- tst_QDir
- tst_QProcess
- tst_QSharedMemory
- tst_QSystemSemaphore
- tst_QUuid
- tst_qdbuscpp2xml
- tst_qmakelib
- tst_rcc
|
) | 117-468 |
| 896 | returnexecuted 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 blockExecuted by:- tst_Lancelot
- tst_QDir
- tst_QProcess
- tst_QSharedMemory
- tst_QSystemSemaphore
- tst_QUuid
- tst_qdbuscpp2xml
- tst_qmakelib
- tst_rcc
| 468 |
| 899 | | - |
| 900 | returnexecuted 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 | | - |
| 908 | void QProcess::setProcessState(ProcessState state) | - |
| 909 | { | - |
| 910 | QProcessPrivate * const d = d_func(); | - |
| 911 | if (d->processState == state| TRUE | evaluated 2439 times by 39 testsEvaluated 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
- ...
| | FALSE | evaluated 6715 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_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 blockExecuted by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_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 |
| 916 | void QProcess::setupChildProcess() | - |
| 917 | { | - |
| 918 | } | - |
| 919 | | - |
| 920 | | - |
| 921 | | - |
| 922 | qint64 QProcess::readData(char *data, qint64 maxlen) | - |
| 923 | { | - |
| 924 | QProcessPrivate * const d = d_func(); | - |
| 925 | if (!maxlen| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 4190 times by 18 testsEvaluated 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 | returnexecuted 1 time by 1 test: return 0; 0;executed 1 time by 1 test: return 0; | 1 |
| 927 | QRingBuffer *readBuffer = (| TRUE | evaluated 1758 times by 13 testsEvaluated 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
| | FALSE | evaluated 2432 times by 16 testsEvaluated 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)| TRUE | evaluated 1758 times by 13 testsEvaluated 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
| | FALSE | evaluated 2432 times by 16 testsEvaluated 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| TRUE | never evaluated | | FALSE | evaluated 4190 times by 18 testsEvaluated 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()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0-4190 |
| 932 | int c = readBuffer->getChar(); | - |
| 933 | if (c == -1| TRUE | never evaluated | | FALSE | never 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| TRUE | evaluated 1641 times by 17 testsEvaluated 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
| | FALSE | evaluated 4190 times by 18 testsEvaluated 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 blockExecuted 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| TRUE | evaluated 2810 times by 18 testsEvaluated 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
| | FALSE | evaluated 1380 times by 17 testsEvaluated 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| TRUE | evaluated 2455 times by 16 testsEvaluated 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
| | FALSE | evaluated 355 times by 5 testsEvaluated by:- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QNetworkReply
- tst_QProcess
- tst_QProcess_and_GuiEventLoop
|
) | 355-2810 |
| 964 | returnexecuted 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 | returnexecuted 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 | | - |
| 970 | qint64 QProcess::writeData(const char *data, qint64 len) | - |
| 971 | { | - |
| 972 | QProcessPrivate * const d = d_func(); | - |
| 973 | if (d->stdinChannel.closed| TRUE | never evaluated | | FALSE | evaluated 735 times by 7 testsEvaluated 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| TRUE | evaluated 35 times by 2 testsEvaluated by:- tst_QProcess
- tst_QProcess_and_GuiEventLoop
| | FALSE | evaluated 700 times by 6 testsEvaluated 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| TRUE | evaluated 35 times by 2 testsEvaluated by:- tst_QProcess
- tst_QProcess_and_GuiEventLoop
| | FALSE | never 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 | returnexecuted 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| TRUE | evaluated 700 times by 6 testsEvaluated by:- tst_QNetworkReply
- tst_QProcess
- tst_QTextCodec
- tst_QTextStream
- tst_qdbusxml2cpp
- tst_qprocess - unknown status
| | FALSE | never 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 | returnexecuted 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 | } | - |
| 1011 | QByteArray QProcess::readAllStandardOutput() | - |
| 1012 | { | - |
| 1013 | ProcessChannel tmp = readChannel(); | - |
| 1014 | setReadChannel(StandardOutput); | - |
| 1015 | QByteArray data = readAll(); | - |
| 1016 | setReadChannel(tmp); | - |
| 1017 | returnexecuted 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 | } | - |
| 1019 | QByteArray QProcess::readAllStandardError() | - |
| 1020 | { | - |
| 1021 | ProcessChannel tmp = readChannel(); | - |
| 1022 | setReadChannel(StandardError); | - |
| 1023 | QByteArray data = readAll(); | - |
| 1024 | setReadChannel(tmp); | - |
| 1025 | returnexecuted 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 | } | - |
| 1027 | void QProcess::start(const QString &program, const QStringList &arguments, OpenMode mode) | - |
| 1028 | { | - |
| 1029 | QProcessPrivate * const d = d_func(); | - |
| 1030 | if (d->processState != NotRunning| TRUE | never evaluated | | FALSE | evaluated 2472 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_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()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 2471 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_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; | 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 blockExecuted by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_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 |
| 1044 | void QProcess::start(OpenMode mode) | - |
| 1045 | { | - |
| 1046 | QProcessPrivate * const d = d_func(); | - |
| 1047 | if (d->processState != NotRunning| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
) { | 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()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 1 time by 1 test |
) { | 1 |
| 1052 | d->setErrorAndEmit(QProcess::FailedToStart, tr("No program defined")); | - |
| 1053 | return;executed 1 time by 1 test: return; | 1 |
| 1054 | } | - |
| 1055 | | - |
| 1056 | d->start(mode); | - |
| 1057 | }executed 1 time by 1 test: end of block | 1 |
| 1058 | bool QProcess::open(OpenMode mode) | - |
| 1059 | { | - |
| 1060 | QProcessPrivate * const d = d_func(); | - |
| 1061 | if (d->processState != NotRunning| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
) { | 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()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 1 time by 1 test |
) { | 1 |
| 1066 | QMessageLogger(__FILE__, 2144, __PRETTY_FUNCTION__).warning("QProcess::start: program not set"); | - |
| 1067 | returnexecuted 1 time by 1 test: return false; false;executed 1 time by 1 test: return false; | 1 |
| 1068 | } | - |
| 1069 | | - |
| 1070 | d->start(mode); | - |
| 1071 | returnexecuted 1 time by 1 test: return true; true;executed 1 time by 1 test: return true; | 1 |
| 1072 | } | - |
| 1073 | | - |
| 1074 | void 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| TRUE | evaluated 5 times by 1 test | | FALSE | evaluated 2468 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_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; | 5 |
| 1087 | if (stdoutChannel.type != QProcessPrivate::Channel::Normal| TRUE | evaluated 9 times by 1 test | | FALSE | evaluated 2464 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_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| TRUE | never evaluated | | FALSE | evaluated 9 times by 1 test |
|| | 0-9 |
| 1089 | processChannelMode == QProcess::MergedChannels| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 6 times by 1 test |
)) | 3-6 |
| 1090 | mode &= ~QIODevice::ReadOnly;executed 3 times by 1 test: mode &= ~QIODevice::ReadOnly; | 3 |
| 1091 | if (mode == 0| TRUE | never evaluated | | FALSE | evaluated 2473 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_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 ((| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 2469 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_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| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 2469 times by 38 testsEvaluated by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_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| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 3 times by 1 test |
) | 1-3 |
| 1096 | q->setStandardOutputFile(q->nullDevice());executed 1 time by 1 test: q->setStandardOutputFile(q->nullDevice()); | 1 |
| 1097 | if (stderrChannel.type == QProcessPrivate::Channel::Normal| TRUE | evaluated 4 times by 1 test | | FALSE | never evaluated |
| 0-4 |
| 1098 | && processChannelMode != QProcess::MergedChannels| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 3 times by 1 test |
) | 1-3 |
| 1099 | q->setStandardErrorFile(q->nullDevice());executed 1 time by 1 test: q->setStandardErrorFile(q->nullDevice()); | 1 |
| 1100 | }executed 4 times by 1 test: end of block | 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 blockExecuted by:- tst_Lancelot
- tst_QApplication
- tst_QCommandLineParser
- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QDir
- tst_QFile
- tst_QFont
- tst_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 | | - |
| 1117 | static 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()| TRUE | evaluated 19433 times by 16 testsEvaluated 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
| | FALSE | evaluated 895 times by 16 testsEvaluated 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('"')| TRUE | evaluated 372 times by 1 test | | FALSE | evaluated 19061 times by 16 testsEvaluated 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| TRUE | evaluated 84 times by 1 test | | FALSE | evaluated 288 times by 1 test |
) { | 84-288 |
| 1131 | | - |
| 1132 | quoteCount = 0; | - |
| 1133 | tmp += program.at(i); | - |
| 1134 | }executed 84 times by 1 test: end of block | 84 |
| 1135 | continue;executed 372 times by 1 test: continue; | 372 |
| 1136 | } | - |
| 1137 | if (quoteCount| TRUE | evaluated 99 times by 1 test | | FALSE | evaluated 18962 times by 16 testsEvaluated 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| TRUE | evaluated 93 times by 1 test | | FALSE | evaluated 6 times by 1 test |
) | 6-93 |
| 1139 | inQuote = !inQuote;executed 93 times by 1 test: inQuote = !inQuote; | 93 |
| 1140 | quoteCount = 0; | - |
| 1141 | }executed 99 times by 1 test: end of block | 99 |
| 1142 | if (!inQuote| TRUE | evaluated 18167 times by 16 testsEvaluated 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
| | FALSE | evaluated 894 times by 1 test |
&& program.at(i).isSpace()| TRUE | evaluated 330 times by 4 testsEvaluated by:- tst_QProcess
- tst_QUdpSocket
- tst_QUndoGroup
- tst_QUndoStack
| | FALSE | evaluated 17837 times by 16 testsEvaluated 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()| TRUE | evaluated 317 times by 4 testsEvaluated by:- tst_QProcess
- tst_QUdpSocket
- tst_QUndoGroup
- tst_QUndoStack
| | FALSE | evaluated 13 times by 1 test |
) { | 13-317 |
| 1144 | args += tmp; | - |
| 1145 | tmp.clear(); | - |
| 1146 | }executed 317 times by 4 tests: end of blockExecuted by:- tst_QProcess
- tst_QUdpSocket
- tst_QUndoGroup
- tst_QUndoStack
| 317 |
| 1147 | }executed 330 times by 4 tests: end of blockExecuted 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 blockExecuted 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()| TRUE | evaluated 885 times by 16 testsEvaluated 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
| | FALSE | evaluated 10 times by 1 test |
) | 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 | returnexecuted 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 | } | - |
| 1156 | void QProcess::start(const QString &command, OpenMode mode) | - |
| 1157 | { | - |
| 1158 | QStringList args = parseCombinedArgString(command); | - |
| 1159 | if (args.isEmpty()| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 886 times by 16 testsEvaluated 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; | 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 blockExecuted 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 |
| 1170 | QString QProcess::program() const | - |
| 1171 | { | - |
| 1172 | const QProcessPrivate * const d = d_func(); | - |
| 1173 | returnexecuted 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 | } | - |
| 1175 | void QProcess::setProgram(const QString &program) | - |
| 1176 | { | - |
| 1177 | QProcessPrivate * const d = d_func(); | - |
| 1178 | if (d->processState != NotRunning| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
) { | 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 | 2 |
| 1184 | QStringList QProcess::arguments() const | - |
| 1185 | { | - |
| 1186 | const QProcessPrivate * const d = d_func(); | - |
| 1187 | returnexecuted 1 time by 1 test: return d->arguments; d->arguments;executed 1 time by 1 test: return d->arguments; | 1 |
| 1188 | } | - |
| 1189 | void QProcess::setArguments(const QStringList &arguments) | - |
| 1190 | { | - |
| 1191 | QProcessPrivate * const d = d_func(); | - |
| 1192 | if (d->processState != NotRunning| TRUE | never evaluated | | FALSE | evaluated 1 time by 1 test |
) { | 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 | 1 |
| 1198 | void QProcess::terminate() | - |
| 1199 | { | - |
| 1200 | QProcessPrivate * const d = d_func(); | - |
| 1201 | d->terminateProcess(); | - |
| 1202 | }executed 12 times by 3 tests: end of blockExecuted by:- tst_QDBusConnection
- tst_QDBusConnection_SpyHook
- tst_QProcess
| 12 |
| 1203 | void QProcess::kill() | - |
| 1204 | { | - |
| 1205 | QProcessPrivate * const d = d_func(); | - |
| 1206 | d->killProcess(); | - |
| 1207 | }executed 15 times by 7 tests: end of blockExecuted by:- tst_QDBusAbstractAdaptor
- tst_QDBusAbstractInterface
- tst_QDBusInterface
- tst_QDBusMarshall
- tst_QNetworkSession
- tst_QProcess
- tst_QSystemSemaphore
| 15 |
| 1208 | | - |
| 1209 | | - |
| 1210 | | - |
| 1211 | | - |
| 1212 | | - |
| 1213 | | - |
| 1214 | int QProcess::exitCode() const | - |
| 1215 | { | - |
| 1216 | const QProcessPrivate * const d = d_func(); | - |
| 1217 | returnexecuted 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 | } | - |
| 1219 | QProcess::ExitStatus QProcess::exitStatus() const | - |
| 1220 | { | - |
| 1221 | const QProcessPrivate * const d = d_func(); | - |
| 1222 | returnexecuted 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 | } | - |
| 1224 | int 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)| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 1 time by 1 test |
|| process.error() == FailedToStart| TRUE | never evaluated | | FALSE | evaluated 1 time by 1 test |
) | 0-4 |
| 1230 | returnexecuted 4 times by 1 test: return -2; -2;executed 4 times by 1 test: return -2; | 4 |
| 1231 | returnexecuted 1 time by 1 test: return process.exitStatus() == QProcess::NormalExit ? process.exitCode() : -1; process.exitStatus() == QProcess::NormalExit| TRUE | evaluated 1 time by 1 test | | FALSE | never evaluated |
? process.exitCode() : -1;executed 1 time by 1 test: return process.exitStatus() == QProcess::NormalExit ? process.exitCode() : -1; | 0-1 |
| 1232 | } | - |
| 1233 | int QProcess::execute(const QString &command) | - |
| 1234 | { | - |
| 1235 | QProcess process; | - |
| 1236 | process.setReadChannelMode(ForwardedChannels); | - |
| 1237 | process.start(command); | - |
| 1238 | if (!process.waitForFinished(-1)| TRUE | evaluated 4 times by 3 testsEvaluated by:- tst_QProcess
- tst_QUndoGroup
- tst_QUndoStack
| | FALSE | never evaluated |
|| process.error() == FailedToStart| TRUE | never evaluated | | FALSE | never evaluated |
) | 0-4 |
| 1239 | returnexecuted 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| TRUE | never evaluated | | FALSE | never evaluated |
? process.exitCode() : -1;never executed: return process.exitStatus() == QProcess::NormalExit ? process.exitCode() : -1; | 0 |
| 1241 | } | - |
| 1242 | bool QProcess::startDetached(const QString &program, | - |
| 1243 | const QStringList &arguments, | - |
| 1244 | const QString &workingDirectory, | - |
| 1245 | qint64 *pid) | - |
| 1246 | { | - |
| 1247 | returnexecuted 1 time by 1 test: return QProcessPrivate::startDetached(program, arguments, workingDirectory, pid); QProcessPrivate::startDetached(program,executed 1 time by 1 test: return QProcessPrivate::startDetached(program, arguments, workingDirectory, pid); | 1 |
| 1248 | arguments,executed 1 time by 1 test: return QProcessPrivate::startDetached(program, arguments, workingDirectory, pid); | 1 |
| 1249 | workingDirectory,executed 1 time by 1 test: return QProcessPrivate::startDetached(program, arguments, workingDirectory, pid); | 1 |
| 1250 | pid);executed 1 time by 1 test: return QProcessPrivate::startDetached(program, arguments, workingDirectory, pid); | 1 |
| 1251 | } | - |
| 1252 | | - |
| 1253 | | - |
| 1254 | | - |
| 1255 | | - |
| 1256 | bool QProcess::startDetached(const QString &program, | - |
| 1257 | const QStringList &arguments) | - |
| 1258 | { | - |
| 1259 | returnexecuted 1 time by 1 test: return QProcessPrivate::startDetached(program, arguments); QProcessPrivate::startDetached(program, arguments);executed 1 time by 1 test: return QProcessPrivate::startDetached(program, arguments); | 1 |
| 1260 | } | - |
| 1261 | bool QProcess::startDetached(const QString &command) | - |
| 1262 | { | - |
| 1263 | QStringList args = parseCombinedArgString(command); | - |
| 1264 | if (args.isEmpty()| TRUE | evaluated 3 times by 1 test | | FALSE | evaluated 2 times by 1 test |
) | 2-3 |
| 1265 | returnexecuted 3 times by 1 test: return false; false;executed 3 times by 1 test: return false; | 3 |
| 1266 | | - |
| 1267 | QString prog = args.first(); | - |
| 1268 | args.removeFirst(); | - |
| 1269 | | - |
| 1270 | returnexecuted 2 times by 1 test: return QProcessPrivate::startDetached(prog, args); QProcessPrivate::startDetached(prog, args);executed 2 times by 1 test: return QProcessPrivate::startDetached(prog, args); | 2 |
| 1271 | } | - |
| 1272 | | - |
| 1273 | | - |
| 1274 | | - |
| 1275 | | - |
| 1276 | | - |
| 1277 | | - |
| 1278 | | - |
| 1279 | | - |
| 1280 | | - |
| 1281 | extern char **environ; | - |
| 1282 | | - |
| 1283 | | - |
| 1284 | QStringList QProcess::systemEnvironment() | - |
| 1285 | { | - |
| 1286 | QStringList tmp; | - |
| 1287 | char *entry = 0; | - |
| 1288 | int count = 0; | - |
| 1289 | while ((| TRUE | evaluated 1651 times by 4 testsEvaluated by:- tst_QProcess
- tst_QSharedPointer
- tst_qmake
- tst_qmessagehandler
| | FALSE | evaluated 55 times by 4 testsEvaluated by:- tst_QProcess
- tst_QSharedPointer
- tst_qmake
- tst_qmessagehandler
|
entry = environ[count++])| TRUE | evaluated 1651 times by 4 testsEvaluated by:- tst_QProcess
- tst_QSharedPointer
- tst_qmake
- tst_qmessagehandler
| | FALSE | evaluated 55 times by 4 testsEvaluated 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 | returnexecuted 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 | } | - |
| 1293 | QString QProcess::nullDevice() | - |
| 1294 | { | - |
| 1295 | | - |
| 1296 | | - |
| 1297 | | - |
| 1298 | returnexecuted 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; }()); ([]() -> 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); returnexecuted 5 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 5 times by 1 test: return qstring_literal_temp; }());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; }()); | 5 |
| 1299 | | - |
| 1300 | } | - |
| 1301 | | - |
| 1302 | | - |
| | |