52 m_board->GetDesignSettings().m_DRCEngine->ClearViolationHandler();
70 BOOST_REQUIRE_MESSAGE( m_board,
"Failed to load board issue24078" );
72 std::vector<std::shared_ptr<DRC_ITEM>> violations;
75 BOOST_REQUIRE_MESSAGE( bds.
m_DRCEngine,
"DRC engine not initialized" );
83 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& ,
int ,
87 violations.push_back( aItem );
95 (
int) violations.size() ) );
97 for(
const auto& v : violations )
98 BOOST_TEST_MESSAGE( wxString::Format(
" Violation: %s", v->GetErrorMessage(
false ) ) );
100 BOOST_CHECK_GE( violations.size(), 1u );
Container for design settings for a BOARD object.
std::map< int, SEVERITY > m_DRCSeverities
std::shared_ptr< DRC_ENGINE > m_DRCEngine
SEVERITY GetSeverity(int aDRCErrorCode)
void RunTests(EDA_UNITS aUnits, bool aReportAllTrackErrors, bool aTestFootprints, BOARD_COMMIT *aCommit=nullptr)
Run the DRC tests.
void SetViolationHandler(DRC_VIOLATION_HANDLER aHandler)
Set an optional DRC violation handler (receives DRC_ITEMs and positions).
void ClearViolationHandler()
void LoadBoard(SETTINGS_MANAGER &aSettingsManager, const wxString &aRelPath, std::unique_ptr< BOARD > &aBoard)
std::unique_ptr< BOARD > m_board
~DRC_INVALID_OUTLINE_BEZIER_FIXTURE()
SETTINGS_MANAGER m_settingsManager
DRC_INVALID_OUTLINE_BEZIER_FIXTURE()=default
BOOST_FIXTURE_TEST_CASE(InvalidOutlineBezierSlotIssue24078, DRC_INVALID_OUTLINE_BEZIER_FIXTURE)
BOOST_TEST_MESSAGE("\n=== Real-World Polygon PIP Benchmark ===\n"<< formatTable(table))
VECTOR2< int32_t > VECTOR2I