From b6e87f0c442e067f89d096b2a254d50b64b597c1 Mon Sep 17 00:00:00 2001 From: CamWight <91156642+CamWight@users.noreply.github.com> Date: Wed, 14 Oct 2026 22:36:07 +0100 Subject: [PATCH] Two tests pass on a Windows checkout: a CRLF parse and an 8.3 TEMP path (#1186) (#1211) Make two tests pass on a Windows checkout: a CRLF parse and an 8.3 TEMP path. --- crates/doc/src/feature_walk_tests.rs | 2 +- crates/engine/src/cmd/libraries_tests.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/doc/src/feature_walk_tests.rs b/crates/doc/src/feature_walk_tests.rs index c5d5c4c6..818bc3b6 100644 --- a/crates/doc/src/feature_walk_tests.rs +++ b/crates/doc/src/feature_walk_tests.rs @@ -141,7 +141,7 @@ const GOLDEN_REFS: &str = include_str!("feature_walk_tests/golden_refs.txt"); #[test] fn input_sketches_lists_every_variant_with_a_sketch_field() { - let src = include_str!("document.rs"); + let src = include_str!("document.rs").replace("\r\n", "\n"); let body = src.split("pub enum FeatureKind {").nth(1).and_then(|s| s.split("\n}\n").next()).unwrap(); let mut with_sketch = Vec::new(); let mut variant = String::new(); diff --git a/crates/engine/src/cmd/libraries_tests.rs b/crates/engine/src/cmd/libraries_tests.rs index c18acfdb..b84fb6b3 100644 --- a/crates/engine/src/cmd/libraries_tests.rs +++ b/crates/engine/src/cmd/libraries_tests.rs @@ -10,7 +10,7 @@ impl File { fn new() -> Self { static NEXT: AtomicU64 = AtomicU64::new(0); Self( - std::env::temp_dir() + solidcraft_io::vfs::temp_dir() .join(format!("solidcraft-catalog-{}-{}.json", std::process::id(), NEXT.fetch_add(1, Ordering::Relaxed))) .to_string_lossy() .into_owned(),