test(settings): build the portable path with join, so Linux CI reads it

The expected path was written out as E:\Suite\ArtCraftLauncherData, which is
one file name on Linux, so the test would have failed on the ubuntu-latest job
the first time it ran. Joining the components gives the same check on both
platforms.
This commit is contained in:
EternalShade3D
2026-10-19 22:00:54 +01:00
parent 2bb173f2e3
commit 88879ce9f6
+3 -2
View File
@@ -102,8 +102,9 @@ mod tests {
#[test]
fn a_portable_suite_keeps_its_settings_inside_itself() {
let root = PathBuf::from("E:\\Suite\\ArtCraftLauncherData");
assert_eq!(portable_settings(&root), PathBuf::from("E:\\Suite\\ArtCraftLauncherData\\data\\app.ron"));
// Built with `join` so the test reads the same on Windows and on Linux CI.
let root = PathBuf::from("Suite").join("ArtCraftLauncherData");
assert_eq!(portable_settings(&root), root.join("data").join("app.ron"));
}
#[test]