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