Fix ERC QA failures caused by hierarchical label root sheet test.

(cherry picked from commit bebc9669ad3913b07f33fa540558a80d1ccdfb1b)
This commit is contained in:
Wayne Stambaugh 2025-04-29 17:46:26 -04:00
parent 0a9d29ee3b
commit 4b009b0698
4 changed files with 9 additions and 7 deletions

View File

@ -176,6 +176,7 @@
"show_text_fill": true,
"size_x": 0,
"size_y": 0,
"use_45_limit": true,
"zoom": 1.0,
"zoom_factors": []
},

View File

@ -47,7 +47,7 @@ BOOST_FIXTURE_TEST_CASE( ERCGlobalLabels, ERC_REGRESSION_TEST_FIXTURE )
// Check for Errors when using global labels
std::vector<std::pair<wxString, int>> tests =
{
{ "issue9367", 12 }
{ "issue9367", 13 }
};
for( const std::pair<wxString, int>& test : tests )

View File

@ -50,7 +50,7 @@ BOOST_FIXTURE_TEST_CASE( ERCLabelNotConnected, ERC_REGRESSION_TEST_FIXTURE )
std::vector<std::pair<wxString, int>> tests =
{
{ "erc_pin_not_connected_basic", 2 },
{ "issue7203", 3 },
{ "issue7203", 4 },
{ "issue11926", 2 },
{ "issue10430", 8 },
{ "erc_directive_label_not_connected", 1 }
@ -82,7 +82,8 @@ BOOST_FIXTURE_TEST_CASE( ERCLabelNotConnected, ERC_REGRESSION_TEST_FIXTURE )
ERC_REPORT reportWriter( m_schematic.get(), EDA_UNITS::MM );
BOOST_CHECK_MESSAGE( errors.GetCount() == test.second, "Expected " << test.second << " errors in " << test.first.ToStdString()
BOOST_CHECK_MESSAGE( errors.GetCount() == test.second,
"Expected " << test.second << " errors in " << test.first.ToStdString()
<< " but got " << errors.GetCount() << "\n"
<< reportWriter.GetTextReport() );

View File

@ -53,7 +53,7 @@ BOOST_FIXTURE_TEST_CASE( ERCNoConnect, ERC_REGRESSION_TEST_FIXTURE )
{ "NoConnectOnLine", 0 },
{ "NoConnectOnLineWithLabel", 1 },
{ "NoConnectOnLineWithGlobalLabel", 1 },
{ "NoConnectOnLineWithHierarchicalLabel", 1 },
{ "NoConnectOnLineWithHierarchicalLabel", 3 },
{ "NoConnectPinsConnectedByLine", 1 },
{ "NoConnectPinsConnectedByLabel", 1 },
};
@ -83,9 +83,9 @@ BOOST_FIXTURE_TEST_CASE( ERCNoConnect, ERC_REGRESSION_TEST_FIXTURE )
ERC_REPORT reportWriter( m_schematic.get(), EDA_UNITS::MM );
BOOST_CHECK_MESSAGE( errors.GetCount() == test.second, "Expected " << test.second << " errors in " << test.first.ToStdString()
<< " but got " << errors.GetCount() << "\n"
<< reportWriter.GetTextReport() );
BOOST_CHECK_MESSAGE( errors.GetCount() == test.second,
"Expected " << test.second << " errors in " << test.first.ToStdString()
<< " but got " << errors.GetCount() << "\n" << reportWriter.GetTextReport() );
}
}