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

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (IsFootprintLibWritableHandlesFailedLoad)
 Regression test for a null-plugin dereference crash.
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

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().