summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-07 15:08:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-07 15:11:04 +0100
commitbd4ef9aa4ccf2152c2780275d931994f94036f1f (patch)
tree7f3f34b56e26a4b54debe3b16bcddbbc964c372a /vcl
parent15e54074665b13e57cb5a2177078e9512573dc2f (diff)
afl-eventtesting: quit on next cycle if testing stops early
Change-Id: Ie313009ee0d10872f5e705d017e6a73ff83c2761
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/app/svapp.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index d4b197b0d8ac..2c017443da6f 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -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();