QA api test: ensure the "C" locale is used in tests.
Fix also a compatibility with current code in drc_proto.cpp
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#include <mock_pgm_base.h>
|
||||
#include <pgm_base.h>
|
||||
#include <qa_utils/wx_utils/wx_assert.h>
|
||||
|
||||
#include <locale_io.h>
|
||||
|
||||
bool init_unit_test()
|
||||
{
|
||||
@@ -33,6 +33,9 @@ bool init_unit_test()
|
||||
|
||||
wxApp::SetInstance( new wxAppConsole );
|
||||
|
||||
// Ensure the "C" locale is used
|
||||
LOCALE_IO dummy;
|
||||
|
||||
bool ok = wxInitialize( boost::unit_test::framework::master_test_suite().argc,
|
||||
boost::unit_test::framework::master_test_suite().argv );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user