| 230 | } |
| 231 | |
| 232 | void DebugeeslowOutputProcessor::processOutput() |
| 233 | { |
| 234 | for (const auto& parameters : std::as_const(m_outputSpy)) { |
| 235 | QCOMPARE_EQ(parameters.size(), 1); // MIDebugSession::inferiorStdoutLines() has one parameter |
| 236 | const auto outputLines = parameters.constFirst().toStringList(); |
| 237 | qDebug() << "Debuggee output:" << outputLines.join('\n'); |
| 238 | // NOTE: outputLines can be empty at this point (very rarely) |
| 239 | |
| 240 | for (const auto& line : outputLines) { |
| 241 | ++m_processedLineCount; |
| 242 | // debugeeslow outputs consecutive integers starting from 1 |
| 243 | QCOMPARE(line, QString::number(m_processedLineCount)); |
| 244 | } |
| 245 | } |
| 246 | m_outputSpy.clear(); |
| 247 | } |
| 248 | |
| 249 | int DebugeeslowOutputProcessor::processedLineCount() const |
| 250 | { |
no test coverage detected