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

Regression test for issue #24597: creepage path cut across a rounded Edge.Cuts slot. More...

Go to the source code of this file.

Classes

struct  DRC_CREEPAGE_ISSUE24597_FIXTURE
 

Functions

 BOOST_FIXTURE_TEST_CASE (CreepageSlotCornerIssue24597, DRC_CREEPAGE_ISSUE24597_FIXTURE)
 

Detailed Description

Regression test for issue #24597: creepage path cut across a rounded Edge.Cuts slot.

A rounded rectangle slot is a single PCB_SHAPE, so its four corner arcs and four straight edges share one parent. When a candidate path ended on one corner arc, GeneratePaths used to exempt that whole parent from the board-edge crossing test, which let a copper-to-far-corner chord cut straight across the slot's near edge. The path then hugged only one arc instead of wrapping the rounded end, and the reported creepage came out too short (and differed front vs back).

With the fix the path wraps both corner arcs of the end cap, so the reported creepage grows from ~2.68mm (corner-cut) to ~2.82mm and matches on both layers.

Definition in file test_drc_creepage_issue24597.cpp.

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE()