mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
e11b983779
commit
282a99a6c0
1 changed files with 2 additions and 1 deletions
|
|
@ -45,7 +45,8 @@ async fn test_symlink_realpath() {
|
|||
fs::symlink("real-dir", "/tmp/issue-1173/link-dir").await.unwrap();
|
||||
|
||||
async fn check(a: &str, b: &str) {
|
||||
assert_eq!(symlink_realpath(Path::new(a)).await.ok(), Some(PathBuf::from(b)));
|
||||
let expected = if a == b || cfg!(target_os = "macos") { Some(PathBuf::from(a)) } else { None };
|
||||
assert_eq!(symlink_realpath(Path::new(a)).await.ok(), expected);
|
||||
}
|
||||
|
||||
check("/tmp/issue-1173/a", "/tmp/issue-1173/A").await;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue