|
KiCad PCB EDA Suite
|
Regression test for issue #24799: oblong NPTH holes picked up the copper-to-edge clearance instead of the copper-to-hole clearance. More...
#include <qa_utils/wx_utils/unit_test_utils.h>#include <pcbnew_utils/board_test_utils.h>#include <base_units.h>#include <board.h>#include <geometry/shape_segment.h>#include <board_design_settings.h>#include <footprint.h>#include <pad.h>#include <zone.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 | NPTH_SLOT_CLEARANCE_FIXTURE |
Functions | |
| BOOST_FIXTURE_TEST_CASE (NpthSlotClearanceIssue24799, NPTH_SLOT_CLEARANCE_FIXTURE) | |
Regression test for issue #24799: oblong NPTH holes picked up the copper-to-edge clearance instead of the copper-to-hole clearance.
The fixture has a round and an oblong NPTH mounting hole well away from the board edge, an F.Cu zone over the whole board, and a track 0.5 mm from the slot wall. Copper-to-hole is 0.25 mm, copper-to-edge 1 mm. Both holes must get the same 0.25 mm fill standoff and DRC must not report the track.
Definition in file test_drc_npth_slot_clearance_issue24799.cpp.
| BOOST_FIXTURE_TEST_CASE | ( | NpthSlotClearanceIssue24799 | , |
| NPTH_SLOT_CLEARANCE_FIXTURE | ) |
Definition at line 70 of file test_drc_npth_slot_clearance_issue24799.cpp.
References actual, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), BOOST_TEST_MESSAGE(), DRC_ENGINE::ClearViolationHandler(), DRCE_EDGE_CLEARANCE, DRCE_FIRST, DRCE_HOLE_CLEARANCE, DRCE_LAST, F_Cu, KI_TEST::FillZones(), KI_TEST::LoadBoard(), BOARD_DESIGN_SETTINGS::m_DRCEngine, BOARD_DESIGN_SETTINGS::m_DRCSeverities, MM, NPTH, pad, pcbIUScale, RPT_SEVERITY_ERROR, RPT_SEVERITY_IGNORE, DRC_ENGINE::RunTests(), and DRC_ENGINE::SetViolationHandler().