|
KiCad PCB EDA Suite
|
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 |
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.
|
inline |
Definition at line 615 of file test_expand_text_vars.cpp.
References ENV_VAR::GetVersionedEnvVarName(), oldLegacy, oldUser, oldVersioned, stockDir, and versionedName.
|
inline |
Definition at line 639 of file test_expand_text_vars.cpp.
References oldLegacy, oldUser, oldVersioned, and versionedName.
| std::optional<wxString> VersionedEnvVarFallbackFixture::oldLegacy |
Definition at line 613 of file test_expand_text_vars.cpp.
Referenced by VersionedEnvVarFallbackFixture(), and ~VersionedEnvVarFallbackFixture().
| std::optional<wxString> VersionedEnvVarFallbackFixture::oldUser |
Definition at line 612 of file test_expand_text_vars.cpp.
Referenced by VersionedEnvVarFallbackFixture(), and ~VersionedEnvVarFallbackFixture().
| std::optional<wxString> VersionedEnvVarFallbackFixture::oldVersioned |
Definition at line 611 of file test_expand_text_vars.cpp.
Referenced by VersionedEnvVarFallbackFixture(), and ~VersionedEnvVarFallbackFixture().
| wxString VersionedEnvVarFallbackFixture::stockDir |
Definition at line 610 of file test_expand_text_vars.cpp.
Referenced by VersionedEnvVarFallbackFixture().
| wxString VersionedEnvVarFallbackFixture::versionedName |
Definition at line 609 of file test_expand_text_vars.cpp.
Referenced by VersionedEnvVarFallbackFixture(), and ~VersionedEnvVarFallbackFixture().