Add BOOST_TEST_CONTEXT wrap in one function

This commit is contained in:
Marek Roszko 2024-05-29 22:23:29 -04:00
parent 7a0d75a5c4
commit 4c5b4cd99f
1 changed files with 39 additions and 36 deletions

View File

@ -145,6 +145,8 @@ BOOST_FIXTURE_TEST_CASE( DRCFalseNegativeRegressions, DRC_REGRESSION_TEST_FIXTUR
};
for( const auto& [testName, expectedErrors] : tests )
{
BOOST_TEST_CONTEXT( testName )
{
KI_TEST::LoadBoard( m_settingsManager, testName, m_board );
// Do not refill zones here because this is testing the DRC engine, not the zone filler
@ -186,8 +188,8 @@ BOOST_FIXTURE_TEST_CASE( DRCFalseNegativeRegressions, DRC_REGRESSION_TEST_FIXTUR
for( const DRC_ITEM& item : violations )
{
BOOST_TEST_MESSAGE( item.ShowReport( &unitsProvider, RPT_SEVERITY_ERROR,
itemMap ) );
BOOST_TEST_MESSAGE(
item.ShowReport( &unitsProvider, RPT_SEVERITY_ERROR, itemMap ) );
}
BOOST_CHECK_EQUAL( violations.size(), expectedErrors );
@ -196,3 +198,4 @@ BOOST_FIXTURE_TEST_CASE( DRCFalseNegativeRegressions, DRC_REGRESSION_TEST_FIXTUR
}
}
}
}