|
KiCad PCB EDA Suite
|
Regression test for issue #23578: creepage DRC must correctly model rounded rectangle slots on Edge.Cuts. More...
#include <qa_utils/wx_utils/unit_test_utils.h>#include <pcbnew_utils/board_test_utils.h>#include <board.h>#include <board_design_settings.h>#include <drc/drc_item.h>#include <drc/drc_engine.h>#include <settings/settings_manager.h>#include <widgets/report_severity.h>Go to the source code of this file.
Classes | |
| struct | DRC_CREEPAGE_ROUNDRECT_FIXTURE |
Functions | |
| BOOST_FIXTURE_TEST_CASE (CreepageRoundedRectSlotIssue23578, DRC_CREEPAGE_ROUNDRECT_FIXTURE) | |
Regression test for issue #23578: creepage DRC must correctly model rounded rectangle slots on Edge.Cuts.
The board contains a gr_rect with radius=0.5mm (a fully-rounded stadium slot) on Edge.Cuts, with Sitove-class copper traces within 5mm creepage distance measured around the slot boundary. Before the fix, TransformEdgeToCreepShapes ignored the corner radius and placed BE_SHAPE_POINT nodes at the raw rectangle corners instead of BE_SHAPE_ARC nodes at the true rounded corners. This caused the DRC to report no violation (false negative) for the fully-rounded case.
Definition in file test_drc_creepage_issue23578.cpp.
| BOOST_FIXTURE_TEST_CASE | ( | CreepageRoundedRectSlotIssue23578 | , |
| DRC_CREEPAGE_ROUNDRECT_FIXTURE | ) |
Definition at line 70 of file test_drc_creepage_issue23578.cpp.
References BOOST_TEST_MESSAGE(), DRC_ENGINE::ClearViolationHandler(), DRCE_CREEPAGE, DRCE_FIRST, DRCE_LAST, BOARD_DESIGN_SETTINGS::GetSeverity(), KI_TEST::LoadBoard(), BOARD_DESIGN_SETTINGS::m_DRCEngine, BOARD_DESIGN_SETTINGS::m_DRCSeverities, MM, RPT_SEVERITY_ERROR, RPT_SEVERITY_IGNORE, DRC_ENGINE::RunTests(), and DRC_ENGINE::SetViolationHandler().