X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9de31412ed470c6fd0bd289dabf85e181ab55803..7c60222510bc5e197b12f153c4bf05db66cb0f4a:/tests/test.cpp diff --git a/tests/test.cpp b/tests/test.cpp index 5225ce76b1..9f304346b4 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -423,7 +423,9 @@ extern bool IsAutomaticTest() if ( !wxGetEnv("WX_TEST_USER", &username) ) username = wxGetUserId(); - s_isAutomatic = username.Lower().Matches("buildslave*"); + username.MakeLower(); + s_isAutomatic = username.Matches("buildslave*") || + username.Matches("sandbox*"); } return s_isAutomatic == 1; @@ -472,14 +474,14 @@ bool TestApp::OnInit() if ( !TestAppBase::OnInit() ) return false; - SetCLocale(); - #if wxUSE_GUI cout << "Test program for wxWidgets GUI features\n" #else cout << "Test program for wxWidgets non-GUI features\n" #endif - << "build: " << WX_BUILD_OPTIONS_SIGNATURE << std::endl; + << "build: " << WX_BUILD_OPTIONS_SIGNATURE << "\n" + << "running under " << wxGetOsDescription() + << " as " << wxGetUserId() << std::endl; if ( m_detail ) { @@ -495,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;