Skip to content

Commit

Permalink
fix: test case ut_lind_fs_rename (#61)
Browse files Browse the repository at this point in the history
Co-authored-by: lind <[email protected]>
  • Loading branch information
ChinmayShringi and lind authored Oct 23, 2024
1 parent ff107fe commit 550b9a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tests/fs_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2418,6 +2418,8 @@ pub mod fs_tests {
let cage = interface::cagetable_getref(1);

let old_path = "/test_dir";
// Clean up the directory if it exists
let _ = cage.rmdir_syscall(old_path);
assert_eq!(cage.mkdir_syscall(old_path, S_IRWXA), 0);
assert_eq!(cage.rename_syscall(old_path, "/test_dir_renamed"), 0);
// Remove the directory for a clean environment
Expand Down

0 comments on commit 550b9a1

Please sign in to comment.