7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-19 00:21:36 +00:00

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
qa
tests/api
tools/drc_proto

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 );

View File

@ -114,7 +114,8 @@ int runDRCProto( PROJECT_CONTEXT project, std::shared_ptr<KIGFX::VIEW_OVERLAY> a
drcEngine->SetProgressReporter( new CONSOLE_PROGRESS_REPORTER ( &consoleLog ) );
drcEngine->SetViolationHandler(
[&]( const std::shared_ptr<DRC_ITEM>& aItem, VECTOR2I aPos, int aLayer )
[&]( const std::shared_ptr<DRC_ITEM>& aItem, VECTOR2I aPos,
int aLayer,DRC_CUSTOM_MARKER_HANDLER* aCustomHandler )
{
// fixme
} );