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

Regression test for issue #24328. More...

#include <qa_utils/wx_utils/unit_test_utils.h>
#include <schematic_utils/schematic_file_util.h>
#include <connection_graph.h>
#include <schematic.h>
#include <sch_marker.h>
#include <sch_pin.h>
#include <sch_sheet_path.h>
#include <erc/erc_settings.h>
#include <erc/erc.h>
#include <erc/erc_item.h>
#include <erc/erc_report.h>
#include <settings/settings_manager.h>
#include <locale_io.h>

Go to the source code of this file.

Classes

struct  ERC_POWER_PIN_MARKER_FIXTURE
 

Functions

 BOOST_FIXTURE_TEST_CASE (ERCPowerPinNotDrivenMarkerOnPowerInputPin, ERC_POWER_PIN_MARKER_FIXTURE)
 

Detailed Description

Regression test for issue #24328.

When ERC reports an ERCE_POWERPIN_NOT_DRIVEN error on a net that has both PT_POWER_IN and PT_INPUT pins, the marker must be anchored to a PT_POWER_IN pin (the pin the error message refers to) rather than a PT_INPUT pin. The bug introduced by ce22bf37de ("ERC: Added show all errors") caused the marker to be placed on a non-power-symbol pin even when that pin was a regular input pin, contradicting the "Input Power pin not driven by any Output Power pins" error text.

Definition in file test_erc_power_pin_marker_location.cpp.

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE()