diff --git a/crates/punktfunk-host/src/mgmt.rs b/crates/punktfunk-host/src/mgmt.rs index 29a8523..edd34c8 100644 --- a/crates/punktfunk-host/src/mgmt.rs +++ b/crates/punktfunk-host/src/mgmt.rs @@ -1588,9 +1588,11 @@ mod tests { ); let checked_in = include_str!("../../../docs/api/openapi.json"); + // Compare content, not line-ending style: the generated `json` is LF (serde_json), but git + // may check the file out CRLF on Windows. assert_eq!( - json.trim(), - checked_in.trim(), + json.trim().replace('\r', ""), + checked_in.trim().replace('\r', ""), "docs/api/openapi.json is stale — regenerate with: \ cargo run -p punktfunk-host -- openapi > docs/api/openapi.json" ); diff --git a/crates/punktfunk-host/src/vdisplay.rs b/crates/punktfunk-host/src/vdisplay.rs index e53a06c..56b21a0 100644 --- a/crates/punktfunk-host/src/vdisplay.rs +++ b/crates/punktfunk-host/src/vdisplay.rs @@ -638,6 +638,8 @@ mod tests { // A pure probe of /proc + the runtime dir: it must not panic and must return promptly on // any box (CI has no graphical session → ActiveKind::None, with the runtime-dir anchor). let a = detect_active_session(); + // The runtime-dir anchor is a Linux (XDG) concept; Windows has no equivalent. + #[cfg(target_os = "linux")] assert!(!a.env.xdg_runtime_dir.is_empty()); // Wayland sockets are only resolved for the Wayland-protocol desktops. if matches!(