Skip to content

Commit

Permalink
fix(landlock): adjust uhyvefilemap test
Browse files Browse the repository at this point in the history
  • Loading branch information
n0toose committed Jan 10, 2025
1 parent e1d8a76 commit 6640aa8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/isolation/filemap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ mod tests {
// Tests directory traversal leading to valid symbolic link with an
// empty guest_path_map.
host_path_map = fixture_path.clone();
guest_path_map = PathBuf::from("/root");
guest_path_map = PathBuf::from("/root/");
uhyvefilemap_params = [format!(
"{}:{}",
host_path_map.to_str().unwrap(),
Expand All @@ -227,6 +227,7 @@ mod tests {
target_host_path = fixture_path.clone();
target_host_path.push("this_folder_exists/file_in_folder.txt");
found_host_path = map.get_host_path(target_guest_path.to_str().unwrap());
println!("test");
assert_eq!(
found_host_path.unwrap(),
target_host_path.as_os_str().to_str().unwrap()
Expand Down

0 comments on commit 6640aa8

Please sign in to comment.