|
KiCad PCB EDA Suite
|
Regression test for https://gitlab.com/kicad/code/kicad/-/issues/24072. More...
#include <qa_utils/wx_utils/unit_test_utils.h>#include <settings/app_settings.h>#include <symbol_editor/symbol_editor_settings.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (DefaultValueIsKeepCenter) | |
| BOOST_AUTO_TEST_CASE (ArcEditModeRoundTripsThroughJson) | |
Regression test for https://gitlab.com/kicad/code/kicad/-/issues/24072.
The Symbol Editor uses SYMBOL_EDITOR_SETTINGS, not EESCHEMA_SETTINGS. Cycling the arc editing mode previously dereferenced a null EESCHEMA_SETTINGS pointer via SCH_BASE_FRAME::eeconfig() and segfaulted. This test verifies that the Symbol Editor settings carry an arc edit mode that can be loaded, stored, and round-tripped through the JSON parameter store.
Definition in file test_issue24072_symbol_arc_edit_mode.cpp.
| BOOST_AUTO_TEST_CASE | ( | ArcEditModeRoundTripsThroughJson | ) |
Definition at line 53 of file test_issue24072_symbol_arc_edit_mode.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), JSON_SETTINGS::Get(), KEEP_CENTER_ENDS_ADJUST_ANGLE, KEEP_ENDPOINTS_OR_START_DIRECTION, JSON_SETTINGS::Load(), SYMBOL_EDITOR_SETTINGS::m_ArcEditMode, JSON_SETTINGS::Set(), and JSON_SETTINGS::Store().
| BOOST_AUTO_TEST_CASE | ( | DefaultValueIsKeepCenter | ) |
Definition at line 45 of file test_issue24072_symbol_arc_edit_mode.cpp.
References BOOST_AUTO_TEST_CASE(), KEEP_CENTER_ADJUST_ANGLE_RADIUS, and SYMBOL_EDITOR_SETTINGS::m_ArcEditMode.