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

Regression test for issue #24544: the creepage DRC path around a partially rounded-rectangle slot on Edge.Cuts (a gr_rect with a corner radius) that separates the two C4 pads of a footprint rotated to a non-orthogonal angle. More...

Go to the source code of this file.

Classes

struct  DRC_CREEPAGE_ROUNDED_SLOT_FIXTURE
 

Functions

 BOOST_FIXTURE_TEST_CASE (CreepageRoundedSlotIssue24544, DRC_CREEPAGE_ROUNDED_SLOT_FIXTURE)
 

Detailed Description

Regression test for issue #24544: the creepage DRC path around a partially rounded-rectangle slot on Edge.Cuts (a gr_rect with a corner radius) that separates the two C4 pads of a footprint rotated to a non-orthogonal angle.

#24544 was reported as #24543 "plus one extra problem": the path both started at the pad hole and did not respect the slot's curved ends. The root cause of BOTH symptoms is the same dropped rotated-pad copper outline fixed in #24543 (CREEPAGE_GRAPH::Addshape() had no SH_SIMPLE case). With the pad copper anchor restored, the shortest creepage path correctly wraps a rounded end of the slot, hugging the arc rather than cutting across the slot interior; the slot's own rounded-rectangle modelling (commit "Model rounded-rect Edge.Cuts slots in creepage") was already correct. There is no separate curve-handling defect.

This test locks in the corrected behaviour: the reported creepage path between the two pads must (1) never pass through the slot interior and (2) run flush against a rounded end of the slot. It fails without the #24543 fix (the pad pair reports no usable path) and passes with it.

Definition in file test_drc_creepage_issue24544.cpp.

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE()