KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_drc_creepage_issue24286.cpp File Reference

Regression test for issue #24286: creepage DRC calculates incorrect path between two THT pads when an NPTH oval slot lies between them. More...

Go to the source code of this file.

Classes

struct  DRC_CREEPAGE_NPTH_PADS_FIXTURE
 

Functions

 BOOST_FIXTURE_TEST_CASE (CreepageNPTHBetweenPadsIssue24286, DRC_CREEPAGE_NPTH_PADS_FIXTURE)
 

Detailed Description

Regression test for issue #24286: creepage DRC calculates incorrect path between two THT pads when an NPTH oval slot lies between them.

The repro board has a polarized capacitor footprint C4 with two THT pads straddling an NPTH oval slot. Both pads are on the 'Sitove' netclass with a 5 mm creepage rule. The expected behaviour is that the creepage path between the pads must travel around the NPTH slot boundary, not straight through the slot interior. Before the fix the candidate-path midpoint test used a board outline polygon that did not have NPTH holes subtracted, so the direct (interior) path was accepted as valid and the reported violation distance was understated.

Definition in file test_drc_creepage_issue24286.cpp.

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE()