Compare commits
7 commits
6344577a40
...
838ae0755b
Author | SHA1 | Date | |
---|---|---|---|
838ae0755b | |||
b512b0a0d8 | |||
de46ff57c1 | |||
abd854f749 | |||
ecb61490f7 | |||
c0e40e6c2d | |||
f810927faf |
1 changed files with 6 additions and 2 deletions
|
@ -794,8 +794,12 @@ mod canonicalize {
|
|||
let link = fs.path(&link_path);
|
||||
file.soft_link(&link).expect("create");
|
||||
let canonical = link.canonicalize().expect("canonicalize");
|
||||
// macos puts all temp files under /private
|
||||
let canonical = Path::new("/").join(canonical.strip_prefix("/private").unwrap());
|
||||
let canonical = if canonical.starts_with("/private") {
|
||||
// INFO: macos puts all temp files under /private
|
||||
Path::new("/").join(canonical.strip_prefix("/private").unwrap())
|
||||
} else {
|
||||
canonical
|
||||
};
|
||||
assert_eq!(canonical, file_path);
|
||||
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in a new issue