Skip to content

Commit

Permalink
Merge pull request #72 from Lind-Project/fix-ut-lind-fs-pwrite-to-dir…
Browse files Browse the repository at this point in the history
…ectory

fix: test case `ut_lind_fs_pwrite_to_directory`
  • Loading branch information
JustinCappos authored Oct 24, 2024
2 parents 039978e + f9397db commit c95d2e0
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 @@ -4178,6 +4178,8 @@ pub mod fs_tests {
// We should expect an error (EISDIR) as writing to a directory is not
// supported.
let path = "/test_dir";
// Remove the directory if it exists to ensure a clean test environment
let _ = cage.rmdir_syscall(path);
assert_eq!(cage.mkdir_syscall(path, S_IRWXA), 0);
// Open the directory with O_RDONLY
let fd = cage.open_syscall(path, O_RDONLY, S_IRWXA);
Expand Down

0 comments on commit c95d2e0

Please sign in to comment.