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

Regression test for issue #24241: DRC reports "arc has null or very small size" on Edge.Cuts, but the resulting marker is placed at an arbitrary pair of nearby (and valid) shapes, making the bad arc impossible to locate in the GUI. More...

Go to the source code of this file.

Classes

struct  DRC_INVALID_OUTLINE_DEGENERATE_ARC_FIXTURE
 

Functions

 BOOST_FIXTURE_TEST_CASE (DegenerateArcOutlineMarkerIssue24241, DRC_INVALID_OUTLINE_DEGENERATE_ARC_FIXTURE)
 

Detailed Description

Regression test for issue #24241: DRC reports "arc has null or very small size" on Edge.Cuts, but the resulting marker is placed at an arbitrary pair of nearby (and valid) shapes, making the bad arc impossible to locate in the GUI.

The reproduction board contains a single degenerate arc whose start, mid and end points are all identical; the rest of the board outline is valid (rounded rectangle with 25-mil corner radii).

Before the fix, the violation was rendered at the centre of an unrelated pair of edges chosen by findClosestOutlineGap, and the linked items did NOT reference the degenerate arc. After the fix, the marker location matches the degenerate arc's start point, and item A of the violation is the degenerate arc itself.

Definition in file test_drc_invalid_outline_issue24241.cpp.

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE()