diff --git a/src/tests/fs_tests.rs b/src/tests/fs_tests.rs index 2221c57..f3d227d 100644 --- a/src/tests/fs_tests.rs +++ b/src/tests/fs_tests.rs @@ -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(); } @@ -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(); }