|
KiCad PCB EDA Suite
|
Regression test for issue #23658: creepage DRC fails to report a violation when the slot bounding the offending pads is closed by Bezier curves 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_BEZIER_FIXTURE |
Functions | |
| BOOST_FIXTURE_TEST_CASE (CreepageBezierSlotIssue23658, DRC_CREEPAGE_BEZIER_FIXTURE) | |
Regression test for issue #23658: creepage DRC fails to report a violation when the slot bounding the offending pads is closed by Bezier curves on Edge.Cuts.
The board has a long Edge.Cuts slot whose fourth side is drawn as two Bezier curves. Two capacitor pads on the 'Sitove' netclass straddle the slot with actual creepage below the 5 mm rule. Before the fix, the creepage graph skipped BEZIER shapes entirely, letting paths cut straight through the slot and produce no violation.
Definition in file test_drc_creepage_issue23658.cpp.
| BOOST_FIXTURE_TEST_CASE | ( | CreepageBezierSlotIssue23658 | , |
| DRC_CREEPAGE_BEZIER_FIXTURE | ) |
Definition at line 70 of file test_drc_creepage_issue23658.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().