| 161 | } |
| 162 | |
| 163 | bool waitForAWhile(MIDebugSession *session, int ms, const char *file, int line) |
| 164 | { |
| 165 | QPointer<MIDebugSession> s(session); //session can get deleted in DebugController |
| 166 | QTest::qWait(ms); |
| 167 | if (!s) { |
| 168 | QTest::qFail("Session ended while waiting", file, line); |
| 169 | return false; |
| 170 | } |
| 171 | return true; |
| 172 | } |
| 173 | |
| 174 | bool waitForState(MIDebugSession* session, KDevelop::IDebugSession::DebuggerState state, const char* file, int line, |
| 175 | bool waitForIdle, const ActiveStateSessionSpy* sessionSpy) |