Skip to content

SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.

icon_audit: compare the requested-icons manifest with CRLF checkouts ignored (#4932) (#4960)

Logan Night1b215b521d59
diff --git a/crates/ui-egui/tests/icon_audit.rs b/crates/ui-egui/tests/icon_audit.rs
index 3e61864b3b..30b4d669e6 100644
--- a/crates/ui-egui/tests/icon_audit.rs
+++ b/crates/ui-egui/tests/icon_audit.rs
@@ -434,7 +434,8 @@ fn requested_menu_icons_have_artwork_and_match_manifest() {
if std::env::var("UPDATE_ICON_MANIFEST").as_deref() == Ok("1") {
std::fs::write(&path, &manifest).unwrap();
} else {
- let expected = std::fs::read_to_string(&path).unwrap_or_default();
+ // A Windows checkout (core.autocrlf) gives the file CRLF line endings (#4932).
+ let expected = std::fs::read_to_string(&path).unwrap_or_default().replace("\r\n", "\n");
assert_eq!(
expected, manifest,
"Runtime icon discovery changed. Regenerate with UPDATE_ICON_MANIFEST=1 cargo test -p solidcraft-ui-egui --test icon_audit"