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 ...@@ -351,12 +351,14 @@ namespace
void CloseDialogsAndQuit() void CloseDialogsAndQuit()
{ {
Scheduler::ProcessTaskScheduling(true);
vcl::Window* pAppWindow = Application::GetFirstTopLevelWindow(); vcl::Window* pAppWindow = Application::GetFirstTopLevelWindow();
while (pAppWindow) while (pAppWindow)
{ {
Dialog::EndAllDialogs(pAppWindow); Dialog::EndAllDialogs(pAppWindow);
pAppWindow = Application::GetNextTopLevelWindow(pAppWindow); pAppWindow = Application::GetNextTopLevelWindow(pAppWindow);
} }
Scheduler::ProcessTaskScheduling(true);
Application::Quit(); Application::Quit();
} }
} }
...@@ -378,11 +380,8 @@ IMPL_LINK_NOARG_TYPED(ImplSVAppData, VclEventTestingHdl, Idle *, void) ...@@ -378,11 +380,8 @@ IMPL_LINK_NOARG_TYPED(ImplSVAppData, VclEventTestingHdl, Idle *, void)
--mnEventTestLimit; --mnEventTestLimit;
if (!mpEventTestInput->good()) if (!mpEventTestInput->good())
{ {
delete mpEventTestInput; SAL_INFO("vcl.eventtesting", "Event Input exhausted, exit next cycle");
delete mpEventTestingIdle; mnEventTestLimit = 0;
SAL_INFO("vcl.eventtesting", "Event Input exhausted, exiting" << mnEventTestLimit);
CloseDialogsAndQuit();
return;
} }
Scheduler::ProcessTaskScheduling(true); Scheduler::ProcessTaskScheduling(true);
mpEventTestingIdle->Start(); 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