KiCad PCB EDA Suite
Loading...
Searching...
No Matches
VersionedEnvVarFallbackFixture Struct Reference

Regression test for KiCad GitLab issue #24460. More...

Public Member Functions

 VersionedEnvVarFallbackFixture ()
 
 ~VersionedEnvVarFallbackFixture ()
 

Public Attributes

wxString versionedName
 
wxString stockDir
 
std::optional< wxString > oldVersioned
 
std::optional< wxString > oldUser
 
std::optional< wxString > oldLegacy
 

Detailed Description

Regression test for KiCad GitLab issue #24460.

The expander has a compatibility fallback that resolves an unset versioned library var (e.g. KICAD7_FOOTPRINT_DIR on a v10 install) to the current install's library directory. That fallback was gated on the glob "KICAD*_FOOTPRINT_DIR", which also matches user-defined names such as KICAD_USER_FOOTPRINT_DIR. When such a user var was not present in the process environment, the expander silently rewrote ${KICAD_USER_FOOTPRINT_DIR} to the stock footprint directory, so the library loaded from the wrong (empty) location with no error.

Definition at line 607 of file test_expand_text_vars.cpp.

Constructor & Destructor Documentation

◆ VersionedEnvVarFallbackFixture()

VersionedEnvVarFallbackFixture::VersionedEnvVarFallbackFixture ( )
inline

◆ ~VersionedEnvVarFallbackFixture()

VersionedEnvVarFallbackFixture::~VersionedEnvVarFallbackFixture ( )
inline

Definition at line 639 of file test_expand_text_vars.cpp.

References oldLegacy, oldUser, oldVersioned, and versionedName.

Member Data Documentation

◆ oldLegacy

std::optional<wxString> VersionedEnvVarFallbackFixture::oldLegacy

◆ oldUser

std::optional<wxString> VersionedEnvVarFallbackFixture::oldUser

◆ oldVersioned

std::optional<wxString> VersionedEnvVarFallbackFixture::oldVersioned

◆ stockDir

wxString VersionedEnvVarFallbackFixture::stockDir

Definition at line 610 of file test_expand_text_vars.cpp.

Referenced by VersionedEnvVarFallbackFixture().

◆ versionedName

wxString VersionedEnvVarFallbackFixture::versionedName

The documentation for this struct was generated from the following file: