X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6524d302d0f384c41092bc399a25cbfd389a71ed..fb8d7eb7a880f1f2e32d8830f9c5e12b2536e05f:/tests/test.cpp diff --git a/tests/test.cpp b/tests/test.cpp index 6b05835137..9f304346b4 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -425,7 +425,7 @@ extern bool IsAutomaticTest() username.MakeLower(); s_isAutomatic = username.Matches("buildslave*") || - username.Matches("buildbot*"); + username.Matches("sandbox*"); } return s_isAutomatic == 1; @@ -497,6 +497,14 @@ bool TestApp::OnInit() m_eventloop = new wxEventLoop; wxEventLoop::SetActive(m_eventloop); + +#ifdef __WXOSX__ + // we need to wait until the window is activated and fully ready + // otherwise no events can be posted + m_eventloop->DispatchTimeout(1000); + m_eventloop->Yield(); +#endif + #endif // wxUSE_GUI return true;