Skip to content

Commit 0cc3398

Browse files
committed
Tests: fix windows test failing on CI
1 parent 6b615d9 commit 0cc3398

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

crates/cargo-gpu/src/config.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,15 @@ mod test {
152152

153153
let args = Config::clap_command_with_cargo_config(&shader_crate_path, vec![]).unwrap();
154154
if cfg!(target_os = "windows") {
155-
assert_eq!(args.build.output_dir, std::path::Path::new("C:/the/moon"));
155+
assert!(
156+
args.build
157+
.output_dir
158+
.to_str()
159+
.unwrap()
160+
.ends_with("/the/moon"),
161+
"Actual: {:?}",
162+
args.build.output_dir
163+
);
156164
} else {
157165
assert_eq!(args.build.output_dir, std::path::Path::new("/the/moon"));
158166
}

0 commit comments

Comments
 (0)