|
KiCad PCB EDA Suite
|
Regression test for issue #24391: entering a group could reach VIEW::Hide() with a null VIEW_ITEM, which was dereferenced (viewPrivData() on a null this) and crashed. More...
#include <qa_utils/wx_utils/unit_test_utils.h>#include <gal/graphics_abstraction_layer.h>#include <view/view.h>#include <view/view_group.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (HideAndSetVisibleTolerateNullItem) | |
| BOOST_AUTO_TEST_CASE (ViewGroupRejectsNullItem) | |
| BOOST_AUTO_TEST_CASE (ReorderLayerDataNonPermutationKeepsLayerTrees) | |
Regression test for issue #24391: entering a group could reach VIEW::Hide() with a null VIEW_ITEM, which was dereferenced (viewPrivData() on a null this) and crashed.
The public mutators must tolerate a null item the same way they already tolerate an item with no view data.
Definition in file test_view_null_safety.cpp.
| BOOST_AUTO_TEST_CASE | ( | HideAndSetVisibleTolerateNullItem | ) |
Definition at line 77 of file test_view_null_safety.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_TEST(), KIGFX::VIEW::Hide(), and KIGFX::VIEW::SetVisible().
| BOOST_AUTO_TEST_CASE | ( | ReorderLayerDataNonPermutationKeepsLayerTrees | ) |
Definition at line 109 of file test_view_null_safety.cpp.
References KIGFX::VIEW::Add(), BOOST_TEST(), KIGFX::VIEW::Query(), KIGFX::VIEW::Remove(), KIGFX::VIEW::ReorderLayerData(), and KIGFX::VIEW::SetGAL().
| BOOST_AUTO_TEST_CASE | ( | ViewGroupRejectsNullItem | ) |
Definition at line 92 of file test_view_null_safety.cpp.
References BOOST_TEST(), and group.