|
KiCad PCB EDA Suite
|
Regression test for the SIGSEGV in KIGFX::VIEW_RTREE::Query reached from a GAL repaint after toggling the constraint overlay off. More...
#include <qa_utils/wx_utils/unit_test_utils.h>#include <set>#include <board.h>#include <math/box2.h>#include <pcb_shape.h>#include <view/view.h>#include <constraints/pcb_constraint.h>#include <constraints/board_constraint_adapter.h>#include <constraints/constraint_builder.h>#include <tools/constraint_overlay.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (OverlayRegistersOncePerLayerAndUnregistersFully) | |
| BOOST_AUTO_TEST_CASE (BadgesFanOutAndSelectionToggles) | |
| BOOST_AUTO_TEST_CASE (LayoutDeOverlapsNearbyAnchors) | |
| BOOST_AUTO_TEST_CASE (VisibilityModeAndHoverFilter) | |
| BOOST_AUTO_TEST_CASE (NearestConstrainedShapeUsesCandidatesOnly) | |
Regression test for the SIGSEGV in KIGFX::VIEW_RTREE::Query reached from a GAL repaint after toggling the constraint overlay off.
VIEW::MakeOverlay() already registers the overlay, so the extra VIEW::Add() in CONSTRAINT_OVERLAY's constructor inserted a second R-tree entry that the destructor's single VIEW::Remove() could not reclaim. The leftover entry dangled on the freed VIEW_OVERLAY and was dereferenced on the next redraw.
Definition in file test_constraint_overlay.cpp.
| BOOST_AUTO_TEST_CASE | ( | BadgesFanOutAndSelectionToggles | ) |
Definition at line 89 of file test_constraint_overlay.cpp.
References BOARD::Add(), BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), BOOST_TEST(), DiagnoseBoardConstraints(), FIXED_POSITION, CONSTRAINT_OVERLAY::LayoutBadges(), EDA_ITEM::m_Uuid, MM, niluuid, overlay, SEGMENT, PCB_SHAPE::SetEnd(), PCB_SHAPE::SetStart(), and START.
| BOOST_AUTO_TEST_CASE | ( | LayoutDeOverlapsNearbyAnchors | ) |
Definition at line 139 of file test_constraint_overlay.cpp.
References BOARD::Add(), BOOST_TEST(), DiagnoseBoardConstraints(), END, FIXED_POSITION, CONSTRAINT_OVERLAY::LayoutBadges(), EDA_ITEM::m_Uuid, MM, overlay, SEGMENT, PCB_SHAPE::SetEnd(), PCB_SHAPE::SetStart(), and START.
| BOOST_AUTO_TEST_CASE | ( | NearestConstrainedShapeUsesCandidatesOnly | ) |
Definition at line 220 of file test_constraint_overlay.cpp.
References BOARD::Add(), BOOST_REQUIRE(), EDA_ITEM::m_Uuid, MM, NearestConstrainedShape(), SEGMENT, PCB_SHAPE::SetEnd(), and PCB_SHAPE::SetStart().
| BOOST_AUTO_TEST_CASE | ( | OverlayRegistersOncePerLayerAndUnregistersFully | ) |
Definition at line 47 of file test_constraint_overlay.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), overlay, KIGFX::VIEW::Query(), and BOX2< Vec >::SetMaximum().
| BOOST_AUTO_TEST_CASE | ( | VisibilityModeAndHoverFilter | ) |
Definition at line 172 of file test_constraint_overlay.cpp.
References BOARD::Add(), ALWAYS, BOOST_CHECK_EQUAL(), DiagnoseBoardConstraints(), FIXED_POSITION, HOVER, EDA_ITEM::m_Uuid, MM, overlay, SEGMENT, PCB_SHAPE::SetEnd(), PCB_SHAPE::SetStart(), and START.