test(presenter): junction 夹具改成逐段 join(带正斜杠的路径让 mklink 报无效语法,用例一直静默跳过),守卫补记 M291 变异(M291)
This commit is contained in:
1 parent
27980cf5b3
commit
375cc4f1fa
2 files changed
+9
-1
No files matched your search
@@ -194,7 +194,9 @@ mod tests {
|
||||
#[test]
|
||||
fn junction_to_the_same_folder_is_one_root() {
|
||||
let root = temp_root("ull-roots-junction");
|
||||
let target = root.join("official/.minecraft");
|
||||
// 逐段 `join`:`join("official/.minecraft")` 会留下正斜杠,而 `cmd` 把 `/` 当开关前缀,
|
||||
// `mklink` 于是报「无效语法」⇒ 这条用例一直走的是下面的「跳过」分支(M291 实测)。
|
||||
let target = root.join("official").join(".minecraft");
|
||||
std::fs::create_dir_all(target.join("versions")).expect("建目录");
|
||||
let link = root.join("linked");
|
||||
if !make_dir_link(&link, &target) {
|
||||
|
||||
Reference in new issue
Block a user