]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/test.cpp
fixes potential crash under gatekeeper
[wxWidgets.git] / tests / test.cpp
index 5225ce76b1d39963669a4721dd0895b5e703d9ff..cdb57c535ad55c5278c513bbc71d3ef7ff406594 100644 (file)
@@ -423,7 +423,9 @@ extern bool IsAutomaticTest()
         if ( !wxGetEnv("WX_TEST_USER", &username) )
             username = wxGetUserId();
 
         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;
     }
 
     return s_isAutomatic == 1;
@@ -472,14 +474,14 @@ bool TestApp::OnInit()
     if ( !TestAppBase::OnInit() )
         return false;
 
     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
 #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 )
     {
 
     if ( m_detail )
     {