KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_issue18346_junction_fixup.cpp File Reference
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <eeschema_test_utils.h>
#include <deque>
#include <eeschema_helpers.h>
#include <locale_io.h>
#include <sch_screen.h>
#include <schematic.h>

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (Issue18346JunctionFixupOnLoad)
 A native schematic written by an older version can carry an implied junction that was never persisted; the fixup must restore it when the file is opened through the headless/CLI load path, not only through the legacy GUI loader.
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( Issue18346JunctionFixupOnLoad )

A native schematic written by an older version can carry an implied junction that was never persisted; the fixup must restore it when the file is opened through the headless/CLI load path, not only through the legacy GUI loader.

issue18346.kicad_sch (file version 20240602, older than current) has a label placed where two wires cross; the label splits both wires, leaving four wire ends at that point with no junction dot, which SCH_SCREEN reports as a needed junction until FixupJunctionsAfterImport runs.

Definition at line 39 of file test_issue18346_junction_fixup.cpp.

References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), dummy, KI_TEST::GetEeschemaTestDataDir(), SCH_SCREENS::GetFirst(), SCH_SCREENS::GetNext(), and EESCHEMA_HELPERS::LoadSchematic().