QA test: disable a DRC test that generate a wxWidgets exception,

and is useless in this QA test
This commit is contained in:
jean-pierre charras 2023-07-23 16:01:01 +02:00
parent 0b32ae3f4b
commit 9c5aa82d2c
2 changed files with 6 additions and 2 deletions

View File

@ -109,7 +109,8 @@ BOOST_FIXTURE_TEST_CASE( DRCFalsePositiveRegressions, DRC_REGRESSION_TEST_FIXTUR
itemMap ) );
}
BOOST_ERROR( wxString::Format( "DRC regression: %s, failed", relPath ) );
BOOST_ERROR( wxString::Format( "DRC regression: %s, failed (err: expected 0 found %d",
relPath, (int)violations.size() ) );
}
}
}

View File

@ -1,7 +1,7 @@
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2021-2022 KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 2021-2023 KiCad Developers, see AUTHORS.txt for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@ -187,6 +187,9 @@ BOOST_FIXTURE_TEST_CASE( TrackCleanerRegressionTests, TRACK_CLEANER_TEST_FIXTURE
bds.m_DRCSeverities[ DRCE_LIB_FOOTPRINT_MISMATCH ] = SEVERITY::RPT_SEVERITY_IGNORE;
bds.m_DRCSeverities[ DRCE_COPPER_SLIVER ] = SEVERITY::RPT_SEVERITY_IGNORE;
bds.m_DRCSeverities[ DRCE_STARVED_THERMAL ] = SEVERITY::RPT_SEVERITY_IGNORE;
// Also disable this test: for some reason it generate an exception inside this QA
// test ans it is useless
bds.m_DRCSeverities[ DRCE_SOLDERMASK_BRIDGE ] = SEVERITY::RPT_SEVERITY_IGNORE;
bds.m_DRCEngine->SetViolationHandler(
[&]( const std::shared_ptr<DRC_ITEM>& aItem, VECTOR2I aPos, int aLayer )