56 m_board->GetDesignSettings().m_DRCEngine->ClearViolationHandler();
74 BOOST_REQUIRE_MESSAGE( m_board,
"Failed to load board issue24078" );
76 std::vector<std::shared_ptr<DRC_ITEM>> violations;
79 BOOST_REQUIRE_MESSAGE( bds.
m_DRCEngine,
"DRC engine not initialized" );
87 [&](
const std::shared_ptr<DRC_ITEM>& aItem,
const VECTOR2I& ,
int ,
91 violations.push_back( aItem );
99 (
int) violations.size() ) );
101 for(
const auto& v : violations )
102 BOOST_TEST_MESSAGE( wxString::Format(
" Violation: %s", v->GetErrorMessage(
false ) ) );
104 BOOST_CHECK_GE( violations.size(), 1u );
Container for design settings for a BOARD object.
std::map< int, SEVERITY > m_DRCSeverities
std::shared_ptr< DRC_ENGINE > m_DRCEngine
SEVERITY GetSeverity(int aDRCErrorCode)
void RunTests(EDA_UNITS aUnits, bool aReportAllTrackErrors, bool aTestFootprints, BOARD_COMMIT *aCommit=nullptr)
Run the DRC tests.
void SetViolationHandler(DRC_VIOLATION_HANDLER aHandler)
Set an optional DRC violation handler (receives DRC_ITEMs and positions).
void ClearViolationHandler()
void LoadBoard(SETTINGS_MANAGER &aSettingsManager, const wxString &aRelPath, std::unique_ptr< BOARD > &aBoard)
std::unique_ptr< BOARD > m_board
~DRC_INVALID_OUTLINE_BEZIER_FIXTURE()
SETTINGS_MANAGER m_settingsManager
DRC_INVALID_OUTLINE_BEZIER_FIXTURE()=default
BOOST_FIXTURE_TEST_CASE(InvalidOutlineBezierSlotIssue24078, DRC_INVALID_OUTLINE_BEZIER_FIXTURE)
BOOST_TEST_MESSAGE("\n=== Real-World Polygon PIP Benchmark ===\n"<< formatTable(table))
VECTOR2< int32_t > VECTOR2I