Browse Source

QA api test: ensure the "C" locale is used in tests.

Fix also a compatibility with current code in drc_proto.cpp
pcb_db
jean-pierre charras 9 months ago
parent
commit
e487f19260
  1. 5
      qa/tests/api/test_api_module.cpp
  2. 3
      qa/tools/drc_proto/drc_proto.cpp

5
qa/tests/api/test_api_module.cpp

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

3
qa/tools/drc_proto/drc_proto.cpp

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

Loading…
Cancel
Save