Merge branch 'ahf/fix-windows-anon-home' into 'main'

Fix broken build and tests after arti!700.

See merge request tpo/core/arti!714
This commit is contained in:
Nick Mathewson 2022-08-31 20:59:03 +00:00
commit 4eca8d5816
1 changed files with 4 additions and 3 deletions

View File

@ -118,11 +118,12 @@ mod test {
}
fn check_with_home(homedir: &Path) {
let arti_conf = homedir.join("here/is/a/path");
let arti_conf = homedir.join("here").join("is").join("a").join("path");
#[cfg(target_family = "windows")]
assert_eq!(
arti_conf.compact_home().to_string(),
"%UserProfile%\\here/is/a/path"
arti_conf.anonymize_home().to_string(),
"%UserProfile%\\here\\is\\a\\path"
);
#[cfg(not(target_family = "windows"))]