diff --git a/yazi-shared/src/fs/fns.rs b/yazi-shared/src/fs/fns.rs index cff8b203..b8c6500d 100644 --- a/yazi-shared/src/fs/fns.rs +++ b/yazi-shared/src/fs/fns.rs @@ -45,7 +45,11 @@ async fn test_symlink_realpath() { fs::symlink("real-dir", "/tmp/issue-1173/link-dir").await.unwrap(); async fn check(a: &str, b: &str) { - let expected = if a == b || cfg!(target_os = "macos") { Some(PathBuf::from(b)) } else { None }; + let expected = if a == b || cfg!(windows) || cfg!(target_os = "macos") { + Some(PathBuf::from(b)) + } else { + None + }; assert_eq!(symlink_realpath(Path::new(a)).await.ok(), expected); }