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:
parent
42b9a9604b
commit
e487f19260
qa
@ -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 );
|
||||
|
||||
|
@ -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…
Reference in New Issue
Block a user