test(detect): normalize Windows path assertion

This commit is contained in:
YUZHEthefool committed 2026-08-09 21:06:13 +08:00
1 parent 2280da11d0
commit 12b9613139
1 file changed
+5 -1
+5 -1
View File
@@ -6468,7 +6468,11 @@ mod tests {
.collect::<Vec<_>>();
assert!(output.status.success(), "where.exe failed: {stderr}");
assert_eq!(matches, vec![expected]);
assert_eq!(matches.len(), 1);
assert_eq!(
std::fs::canonicalize(&matches[0]).expect("where.exe match should canonicalize"),
std::fs::canonicalize(&expected).expect("expected PATH shim should canonicalize")
);
}
#[test]