Skip to content

Commit

Permalink
fix: getdents folders cleanup (#58)
Browse files Browse the repository at this point in the history
* fix: getdents folders cleanup

* feat: added cleanup comment

---------

Co-authored-by: lind <lind@nyu.edu>
  • Loading branch information
ChinmayShringi and lind authored Oct 22, 2024
1 parent d7f776b commit 7c4588c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tests/fs_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2512,6 +2512,8 @@ pub mod fs_tests {
}

assert_eq!(cage.close_syscall(fd), 0);
// Clean up environment by removing the directory
assert_eq!(cage.rmdir_syscall("/getdents"), 0);
assert_eq!(cage.exit_syscall(libc::EXIT_SUCCESS), libc::EXIT_SUCCESS);
lindrustfinalize();
}
Expand All @@ -2538,7 +2540,8 @@ pub mod fs_tests {

// Close the directory
assert_eq!(cage.close_syscall(fd), 0);

// Clean up environment by removing the directory
assert_eq!(cage.rmdir_syscall("/getdents"), 0);
assert_eq!(cage.exit_syscall(libc::EXIT_SUCCESS), libc::EXIT_SUCCESS);
lindrustfinalize();
}
Expand Down

0 comments on commit 7c4588c

Please sign in to comment.