|
KiCad PCB EDA Suite
|
Test that symbol and sheet instances are saved with the correct project name, not an empty string. More...
#include <boost/test/unit_test.hpp>#include <eeschema_test_utils.h>#include <sch_io/kicad_sexpr/sch_io_kicad_sexpr.h>#include <sch_screen.h>#include <sch_sheet.h>#include <sch_symbol.h>#include <schematic.h>#include <kiid.h>#include <locale_io.h>#include <settings/settings_manager.h>#include <wx/filename.h>#include <wx/stdpaths.h>#include <wx/textfile.h>Go to the source code of this file.
Classes | |
| struct | PROJECT_NAME_FIXTURE |
Functions | |
| BOOST_AUTO_TEST_CASE (SymbolInstanceProjectName) | |
| Test that symbol instances are saved with the current project name, not an empty string, when using the virtual root pattern. | |
Test that symbol and sheet instances are saved with the correct project name, not an empty string.
Regression test for the virtual root project name bug.
Definition in file test_project_name_instances.cpp.
| BOOST_AUTO_TEST_CASE | ( | SymbolInstanceProjectName | ) |
Test that symbol instances are saved with the current project name, not an empty string, when using the virtual root pattern.
Definition at line 96 of file test_project_name_instances.cpp.
References SCH_SCREEN::Append(), BOOST_AUTO_TEST_CASE(), BOOST_REQUIRE(), BOOST_TEST_MESSAGE(), dummy, SCH_SYMBOL::GetField(), SCH_SYMBOL::GetInstance(), SCH_SYMBOL_INSTANCE::m_ProjectName, path, REFERENCE, SCH_IO_KICAD_SEXPR::SaveSchematicFile(), SCH_SYMBOL::SetLibId(), SCH_SYMBOL::SetPosition(), SCH_SYMBOL::SetPrefix(), SCH_SYMBOL::SetRef(), and SCH_FIELD::SetText().