|
KiCad PCB EDA Suite
|
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) | |
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.
| BOOST_FIXTURE_TEST_CASE | ( | ERCPowerPinNotDrivenMarkerOnPowerInputPin | , |
| ERC_POWER_PIN_MARKER_FIXTURE | ) |
Definition at line 61 of file test_erc_power_pin_marker_location.cpp.
References BOOST_CHECK_MESSAGE(), dummy, ElectricalPinTypeGetText(), ERCE_LIB_SYMBOL_ISSUES, ERCE_LIB_SYMBOL_MISMATCH, ERCE_POWERPIN_NOT_DRIVEN, ERCE_UNANNOTATED, SHEETLIST_ERC_ITEMS_PROVIDER::GetCount(), SHEETLIST_ERC_ITEMS_PROVIDER::GetItem(), ERC_REPORT::GetTextReport(), KI_TEST::LoadSchematic(), ERC_SETTINGS::m_ERCSeverities, MM, pin, PT_POWER_IN, RPT_SEVERITY_ERROR, RPT_SEVERITY_IGNORE, RPT_SEVERITY_WARNING, SCH_PIN_T, SHEETLIST_ERC_ITEMS_PROVIDER::SetSeverities(), ERC_TESTER::TestPinToPin(), and EDA_ITEM::Type().