|
KiCad PCB EDA Suite
|
Regression test for issue #24078: DRC fails to report a malformed board outline when one of the intersecting Edge.Cuts contours is composed of Bezier curves chained together. 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_INVALID_OUTLINE_BEZIER_FIXTURE |
Functions | |
| BOOST_FIXTURE_TEST_CASE (InvalidOutlineBezierSlotIssue24078, DRC_INVALID_OUTLINE_BEZIER_FIXTURE) | |
Regression test for issue #24078: DRC fails to report a malformed board outline when one of the intersecting Edge.Cuts contours is composed of Bezier curves chained together.
The board has an outer rectangle, a long rectangular slot, and a small Bezier-bounded slot that crosses the rectangular slot. Before the fix, TestBoardOutlinesGraphicItems only assembled rectangles, circles and polygons into closed contours for the cross-contour intersection test, so the bezier-chain slot was excluded and the overlap went unreported.
Definition in file test_drc_invalid_outline_issue24078.cpp.
| BOOST_FIXTURE_TEST_CASE | ( | InvalidOutlineBezierSlotIssue24078 | , |
| DRC_INVALID_OUTLINE_BEZIER_FIXTURE | ) |
Definition at line 70 of file test_drc_invalid_outline_issue24078.cpp.
References BOOST_TEST_MESSAGE(), DRC_ENGINE::ClearViolationHandler(), DRCE_FIRST, DRCE_INVALID_OUTLINE, 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().