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

Go to the source code of this file.

Functions

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

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( IsSymbolLibWritableHandlesFailedLoad )

Regression test for a null-plugin dereference crash.

A symbol library that fails to load leaves a LOAD_ERROR sentinel with a null plugin in the adapter's map. IsSymbolLibWritable() is called for every table row by the symbol 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_symbol_library_adapter.cpp.

References BOOST_AUTO_TEST_CASE(), and BOOST_CHECK_EQUAL().