From c66bfe457c0af0ee1d4aeee5d34a05a0a0a3a1ff Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 24 Oct 2012 23:14:01 +0000 Subject: [PATCH] Show some information about the environment in the unit tests. For now just show the system description and the locale, this should already be helpful for diagnosing some test failures. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/test.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test.cpp b/tests/test.cpp index a2a04ed98c..6619dd21c5 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -479,6 +479,13 @@ bool TestApp::OnInit() #endif << "build: " << WX_BUILD_OPTIONS_SIGNATURE << std::endl; + if ( m_detail ) + { + // Output some important information about the test environment. + cout << "Running under " << wxGetOsDescription() << ", " + "locale is " << setlocale(LC_ALL, NULL) << std::endl; + } + #if wxUSE_GUI // create a hidden parent window to be used as parent for the GUI controls wxTestableFrame* frame = new wxTestableFrame();