mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 10:51:11 +01:00
profile::tests::the_installed_root_is_used_once_and_must_be_absolute (from #9233) installs the launch's profile root, which a OnceLock holds for the rest of the process. Under cargo test the other tests of the vectorcraft and vectorcraft-cli binaries run on threads of that process and read the settings folder from it. When the root was installed while prefs_dir::tests::the_font_scans_read_the_fonts_folder_next_to_the_settings ran, the Fonts folder it had set and the settings folder it read next differed, and the test failed. nextest runs each test in its own process, so CI passed it. The installed-root test now runs again in a child process of the test binary, as crates/engine/src/tests.rs's in_own_process does, and the font test asserts that no root was installed beside it. With one test thread the font test runs after the installed-root test, so without the change it fails on every run.