Kaydet (Commit) bd4ef9aa authored tarafından Caolán McNamara's avatar Caolán McNamara

afl-eventtesting: quit on next cycle if testing stops early

Change-Id: Ie313009ee0d10872f5e705d017e6a73ff83c2761
üst 15e54074
......@@ -351,12 +351,14 @@ namespace
void CloseDialogsAndQuit()
{
Scheduler::ProcessTaskScheduling(true);
vcl::Window* pAppWindow = Application::GetFirstTopLevelWindow();
while (pAppWindow)
{
Dialog::EndAllDialogs(pAppWindow);
pAppWindow = Application::GetNextTopLevelWindow(pAppWindow);
}
Scheduler::ProcessTaskScheduling(true);
Application::Quit();
}
}
......@@ -378,11 +380,8 @@ IMPL_LINK_NOARG_TYPED(ImplSVAppData, VclEventTestingHdl, Idle *, void)
--mnEventTestLimit;
if (!mpEventTestInput->good())
{
delete mpEventTestInput;
delete mpEventTestingIdle;
SAL_INFO("vcl.eventtesting", "Event Input exhausted, exiting" << mnEventTestLimit);
CloseDialogsAndQuit();
return;
SAL_INFO("vcl.eventtesting", "Event Input exhausted, exit next cycle");
mnEventTestLimit = 0;
}
Scheduler::ProcessTaskScheduling(true);
mpEventTestingIdle->Start();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment