修复 Unix CI 符号链接断言

更新项目字体符号链接错误文案断言

同步自动工作区链接拒绝断言
This commit is contained in:
2026-08-31 11:57:29 +08:00
parent 4651197458
commit 8624181eca
2 changed files with 2 additions and 2 deletions
@@ -2690,7 +2690,7 @@ mod ui_editor_font_tests {
assert_eq!(
read_registered_ui_editor_font(root, &entry).expect_err("reject symlink"),
"项目文件路径不能包含符号链接"
"项目文件路径不能包含符号链接或 Windows reparse point"
);
}
}
@@ -1487,7 +1487,7 @@ fn automatic_local_game_project_rejects_symlinked_projects_root() {
let error = create_automatic_local_game_project_at(&projects_root)
.expect_err("symlinked automatic workspace root must fail");
assert!(error.contains("普通文件夹"));
assert!(error.contains("不能包含符号链接"));
assert!(fs::read_dir(&target).expect("read target").next().is_none());
fs::remove_dir_all(container).ok();
}