Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix(mlx): der Symlink-Test bekommt das cfg(unix) seiner vier Geschwister

purple386cdc6d9fcb
diff --git a/src-tauri/src/commands/mlx_snapshot.rs b/src-tauri/src/commands/mlx_snapshot.rs
index 56bffd96..1403f901 100644
--- a/src-tauri/src/commands/mlx_snapshot.rs
+++ b/src-tauri/src/commands/mlx_snapshot.rs
@@ -1285,6 +1285,10 @@ mod tests {
assert!(repair_plan(&clean.defects).0.is_empty());
}
+ // Symlinks legt dieser Test mit `std::os::unix` an, das es unter Windows
+ // nicht gibt. Dasselbe `cfg` tragen die vier Geschwister in filesystem.rs,
+ // engine.rs und gpu.rs; hier hat es gefehlt.
+ #[cfg(unix)]
#[test]
fn a_dangling_snapshot_link_reads_as_unreadable_and_takes_its_blob_with_it() {
let temp = tempfile::tempdir().unwrap();