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:
jean-pierre charras
2025-01-26 11:47:18 +01:00
parent 42b9a9604b
commit e487f19260
2 changed files with 6 additions and 2 deletions
+4 -1
View File
@@ -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 );