KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_constraint_overlay.cpp File Reference

Regression test for the SIGSEGV in KIGFX::VIEW_RTREE::Query reached from a GAL repaint after toggling the constraint overlay off. More...

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)
 

Detailed Description

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.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/5]

◆ BOOST_AUTO_TEST_CASE() [2/5]

◆ BOOST_AUTO_TEST_CASE() [3/5]

BOOST_AUTO_TEST_CASE ( NearestConstrainedShapeUsesCandidatesOnly )

◆ BOOST_AUTO_TEST_CASE() [4/5]

BOOST_AUTO_TEST_CASE ( OverlayRegistersOncePerLayerAndUnregistersFully )

◆ BOOST_AUTO_TEST_CASE() [5/5]

BOOST_AUTO_TEST_CASE ( VisibilityModeAndHoverFilter )