diff --git a/crates/engine-qwen35-cuda/tests/bringup_prints_gated.rs b/crates/engine-qwen35-cuda/tests/bringup_prints_gated.rs index c03d7cf8..2836bc78 100644 --- a/crates/engine-qwen35-cuda/tests/bringup_prints_gated.rs +++ b/crates/engine-qwen35-cuda/tests/bringup_prints_gated.rs @@ -92,6 +92,11 @@ fn push_declared_files(gated: &mut Vec, file: &Path, name: &str, above: let dir = file.parent().unwrap(); gated.push(dir.join(format!("{name}.rs"))); gated.push(dir.join(name).join("mod.rs")); + // an ordinary child of `parent.rs` lives in `parent/name.rs` + if let Some(stem) = file.file_stem() { + gated.push(dir.join(stem).join(format!("{name}.rs"))); + gated.push(dir.join(stem).join(name).join("mod.rs")); + } // `#[path = "other_name.rs"] mod name;` if let Some(path) = above.split("#[path = \"").nth(1).and_then(|rest| rest.split('"').next()) { gated.push(dir.join(path));