|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <footprint.h>#include <layer_ids.h>#include <layer_utils.h>#include <lset.h>#include <pad.h>#include <pcb_shape.h>#include <pcbnew_utils/board_file_utils.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (OrphanLayerCheckIgnoresRescue) | |
| Regression test for https://gitlab.com/kicad/code/kicad/-/issues/24045. | |
| BOOST_AUTO_TEST_CASE (Issue24045Footprint) | |
| BOOST_AUTO_TEST_CASE | ( | Issue24045Footprint | ) |
Definition at line 113 of file test_footprint_rescue_layer.cpp.
References B_Cu, BOOST_REQUIRE(), BOOST_TEST(), F_Cu, LAYER_UTILS::GetAllFootprintLayers(), LAYER_UTILS::GetOrphanedFootprintLayers(), KI_TEST::GetPcbnewTestDataDir(), LSET::InternalCuMask(), KI_TEST::ReadFootprintFromFileOrStream(), Rescue, and LSET::UserDefinedLayersMask().
| BOOST_AUTO_TEST_CASE | ( | OrphanLayerCheckIgnoresRescue | ) |
Regression test for https://gitlab.com/kicad/code/kicad/-/issues/24045.
A footprint that contains items on the internal Rescue pseudo-layer must not cause the Footprint Properties dialog validator to report "You are trying to remove layers..." with an empty list. Rescue is an internal fallback layer with no UI control, so the orphaned-layer check must treat it as non-blocking.
Definition at line 45 of file test_footprint_rescue_layer.cpp.
References FOOTPRINT::Add(), B_Cu, BOOST_AUTO_TEST_CASE(), BOOST_TEST(), F_Cu, F_SilkS, LAYER_UTILS::GetAllFootprintLayers(), PAD::GetLayerSet(), LAYER_UTILS::GetOrphanedFootprintLayers(), In1_Cu, LSET::InternalCuMask(), PAD, PTH, Rescue, PAD::SetAttribute(), PCB_SHAPE::SetLayer(), and LSET::UserDefinedLayersMask().