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

Test for issue #24663: DNP set on a hierarchical sheet must read as effective DNP in the symbol fields table, without stamping the attribute onto the child symbols. More...

#include <boost/test/unit_test.hpp>
#include <qa_utils/wx_utils/unit_test_utils.h>
#include "eeschema_test_utils.h"
#include <fields_data_model.h>
#include <sch_reference_list.h>
#include <sch_sheet_path.h>
#include <sch_symbol.h>
#include <schematic.h>
#include <wx/filename.h>

Go to the source code of this file.

Classes

struct  ISSUE24663_FIXTURE
 

Functions

 BOOST_FIXTURE_TEST_CASE (SheetDNPEffectiveInSymbolFields, ISSUE24663_FIXTURE)
 

Detailed Description

Test for issue #24663: DNP set on a hierarchical sheet must read as effective DNP in the symbol fields table, without stamping the attribute onto the child symbols.

The fixture has a root sheet whose only subsheet is marked Do Not Populate. The one symbol inside it (R1) has its own DNP attribute OFF. Setting DNP on a sheet is an effective rollup computed at netlist, BOM and plot time, it is never written onto the child symbols. The symbol fields table must still show that effective state, otherwise the column contradicts the netlist, the BOM and the dialog's own "Exclude DNP" filter.

Definition in file test_issue24663_sheet_dnp_fields.cpp.

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE()