Remove check for existing hole
Does not exist now that we've refilled zones
This commit is contained in:
parent
6f8272718d
commit
124be52411
|
@ -147,21 +147,8 @@ BOOST_FIXTURE_TEST_CASE( NotchedZones, ZONE_FILL_TEST_FIXTURE )
|
||||||
// https://gitlab.com/kicad/code/kicad/-/issues/2737
|
// https://gitlab.com/kicad/code/kicad/-/issues/2737
|
||||||
// https://gitlab.com/kicad/code/kicad/-/issues/2752
|
// https://gitlab.com/kicad/code/kicad/-/issues/2752
|
||||||
|
|
||||||
// First, run a sanity check to validate that the saved board still has holes.
|
|
||||||
SHAPE_POLY_SET frontCopper;
|
SHAPE_POLY_SET frontCopper;
|
||||||
|
|
||||||
for( ZONE* zone : m_board->Zones() )
|
|
||||||
{
|
|
||||||
if( zone->GetLayerSet().Contains( F_Cu ) )
|
|
||||||
{
|
|
||||||
frontCopper.BooleanAdd( *zone->GetFilledPolysList( F_Cu ),
|
|
||||||
SHAPE_POLY_SET::PM_STRICTLY_SIMPLE );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
BOOST_CHECK_GT( frontCopper.OutlineCount(), 2 );
|
|
||||||
|
|
||||||
// Now re-fill and make sure the holes are gone.
|
|
||||||
KI_TEST::FillZones( m_board.get() );
|
KI_TEST::FillZones( m_board.get() );
|
||||||
|
|
||||||
frontCopper = SHAPE_POLY_SET();
|
frontCopper = SHAPE_POLY_SET();
|
||||||
|
|
Loading…
Reference in New Issue