KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_footprint_rescue_layer.cpp File Reference
#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)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

◆ BOOST_AUTO_TEST_CASE() [2/2]

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().