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
@@ -35,6 +35,12 @@
|
|||||||
//! `app-iced/src/platform/locale.rs` 的 `quiet(program)` 改回裸构造 ⇒ 红(用户报的那处
|
//! `app-iced/src/platform/locale.rs` 的 `quiet(program)` 改回裸构造 ⇒ 红(用户报的那处
|
||||||
//! `reg.exe`);⑦`export.rs` 三个 opener 留裸 + 清单写明理由 ⇒ **不**红。
|
//! `reg.exe`);⑦`export.rs` 三个 opener 留裸 + 清单写明理由 ⇒ **不**红。
|
||||||
//!
|
//!
|
||||||
|
//! M291(`presenter` 的 junction 夹具):⑧`host/game/roots.rs` 的 `make_dir_link` 改回裸
|
||||||
|
//! `Command::new("cmd")` ⇒ 红并点名 `crates/presenter/src/host/game/roots.rs:146`。这一条同时钉
|
||||||
|
//! 一处**收并**:改之前本守卫一次抓到两处(`mklink /J` 的产品副本 `roots.rs:193` 与测试副本
|
||||||
|
//! `tests_multiroot.rs:83`),M291 把两份收成一个共享夹具(`roots::make_dir_link`,`#[cfg(test)]`),
|
||||||
|
//! 所以现在的变异只可能剩一处。
|
||||||
|
//!
|
||||||
//! ## P1-1:守卫自己被变异验了两遍才对的
|
//! ## P1-1:守卫自己被变异验了两遍才对的
|
||||||
//!
|
//!
|
||||||
//! ③第一次**没红**:断言搜整份源码,而 `quiet` 的文档注释里就写着
|
//! ③第一次**没红**:断言搜整份源码,而 `quiet` 的文档注释里就写着
|
||||||
|
|||||||
@@ -194,7 +194,9 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn junction_to_the_same_folder_is_one_root() {
|
fn junction_to_the_same_folder_is_one_root() {
|
||||||
let root = temp_root("ull-roots-junction");
|
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("建目录");
|
std::fs::create_dir_all(target.join("versions")).expect("建目录");
|
||||||
let link = root.join("linked");
|
let link = root.join("linked");
|
||||||
if !make_dir_link(&link, &target) {
|
if !make_dir_link(&link, &target) {
|
||||||
|
|||||||
Reference in new issue
Block a user