|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <footprint_library_adapter.h>#include <libraries/library_manager.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (IsFootprintLibWritableHandlesFailedLoad) | |
| Regression test for a null-plugin dereference crash. | |
| BOOST_AUTO_TEST_CASE | ( | IsFootprintLibWritableHandlesFailedLoad | ) |
Regression test for a null-plugin dereference crash.
A footprint library that fails to load leaves a LOAD_ERROR sentinel with a null plugin in the adapter's map. IsFootprintLibWritable() is called for every table row by the footprint editor and chooser, so it must report such a library as not writable instead of dereferencing the null plugin.
Definition at line 59 of file test_footprint_library_adapter.cpp.
References BOOST_AUTO_TEST_CASE(), and BOOST_CHECK_EQUAL().