Lind-Project / RawPOSIX

Rust POSIX-compliant interface
Apache License 2.0
0 stars 0 forks source link

fix: test case `ut_lind_fs_pwrite_to_directory` #72

Closed ChinmayShringi closed 1 month ago

ChinmayShringi commented 1 month ago

Description

Fixes # (issue)

Added a clean-up step to ensure the test environment is always reset before the mkdir operation in the ut_lind_fs_pwrite_to_directory test case. The line let _ = cage.rmdir_syscall('/test_dir'); was introduced to remove the directory if it already exists, ensuring a clean environment for testing. This change enhances the reliability of the test by preventing conflicts from pre-existing directories.

Type of change

How Has This Been Tested?

Checklist: