We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0084f3e commit ea8814dCopy full SHA for ea8814d
crates/pet/src/resolve.rs
@@ -203,10 +203,16 @@ mod tests {
203
exe_name
204
);
205
let resolved = result.unwrap();
206
+ // Compare filenames only — on Windows CI, temp paths may use 8.3 short
207
+ // names (e.g., RUNNER~1) while the discovered path uses the long form.
208
assert_eq!(
- resolved.discovered.executable,
- Some(fake_exe),
209
- "discovered executable should match the provided path"
+ resolved
210
+ .discovered
211
+ .executable
212
+ .as_ref()
213
+ .and_then(|p| p.file_name().map(|f| f.to_owned())),
214
+ Some(std::ffi::OsString::from(exe_name)),
215
+ "discovered executable filename should match"
216
217
}
218
0 commit comments