EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust
Tests: the CLI render-out test compares canonical temp paths
Aavirasha2554c404c60
diff --git a/apps/effectcraft-cli/tests/cli.rs b/apps/effectcraft-cli/tests/cli.rsindex 723016a86..d67e768c0 100644--- a/apps/effectcraft-cli/tests/cli.rs+++ b/apps/effectcraft-cli/tests/cli.rs@@ -28,7 +28,9 @@ fn ok_json(args: &[&str]) -> Value {fn tmp(name: &str) -> PathBuf {let d = std::env::temp_dir().join(format!("ec-cli-test-{}", std::process::id()));std::fs::create_dir_all(&d).unwrap();- d.join(name)+ // macOS's `/var` is a symlink to `/private/var`: a child process resolves its working+ // directory through `current_dir()`, which is canonical, so compare canonical paths.+ std::fs::canonicalize(&d).unwrap_or(d).join(name)}#[test]