| 227 | } |
| 228 | |
| 229 | void DebuggerTestBase::verifyInferiorStdout(TestLaunchConfiguration& launchConfiguration, |
| 230 | const QStringList& expectedOutputLines) |
| 231 | { |
| 232 | auto* const session = createTestDebugSession(); |
| 233 | const QSignalSpy outputSpy(session, &MIDebugSession::inferiorStdoutLines); |
| 234 | |
| 235 | START_DEBUGGING_E(session, launchConfiguration); |
| 236 | WAIT_FOR_STATE(session, IDebugSession::EndedState); |
| 237 | |
| 238 | QCOMPARE_GT(outputSpy.count(), 0); |
| 239 | |
| 240 | QStringList outputLines; |
| 241 | for (const auto& arguments : outputSpy) { |
| 242 | QCOMPARE_EQ(arguments.size(), 1); // MIDebugSession::inferiorStdoutLines() has one parameter |
| 243 | outputLines << arguments.constFirst().toStringList(); |
| 244 | } |
| 245 | QCOMPARE(outputLines, expectedOutputLines); |
| 246 | } |
| 247 | |
| 248 | void DebuggerTestBase::initTestCase() |
| 249 | { |
nothing calls this directly
no test coverage detected