Skip to content

Commit 183da69

Browse files
committed
try to fix tests
1 parent b21d879 commit 183da69

File tree

2 files changed

+89
-74
lines changed

2 files changed

+89
-74
lines changed

crates/cargo-gpu/src/config.rs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,17 @@ mod test {
185185
let shader_crate_path = update_cargo_output_dir();
186186

187187
let args = Config::clap_command_with_cargo_config(&shader_crate_path, vec![]).unwrap();
188-
assert_eq!(
189-
args.build_args.output_dir,
190-
std::path::Path::new("/the/moon")
191-
);
188+
if cfg!(target_os = "windows") {
189+
assert_eq!(
190+
args.build_args.output_dir,
191+
std::path::Path::new("C:/the/moon")
192+
);
193+
} else {
194+
assert_eq!(
195+
args.build_args.output_dir,
196+
std::path::Path::new("/the/moon")
197+
);
198+
}
192199
}
193200

194201
#[test_log::test]

0 commit comments

Comments
 (0)