This pull request introduces a new test case (ut_lind_fs_pwrite_to_chardev_file) that validates writing to a character device type file (/dev/null). The test simulates writing 100 bytes to /dev/null, which in a real system, discards any data written to it. This test ensures that the pwrite_syscall behaves as expected when interacting with a character device file.
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
cargo test ut_lind_fs_pwrite_to_chardev_file
Checklist:
[x] My code follows the style guidelines of this project
[x] I have commented my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] Any dependent changes have been added to a pull request and/or merged in other modules (native-client, lind-glibc, lind-project)
Description
Fixes # (issue)
This pull request introduces a new test case (
ut_lind_fs_pwrite_to_chardev_file
) that validates writing to a character device type file (/dev/null
). The test simulates writing 100 bytes to/dev/null
, which in a real system, discards any data written to it. This test ensures that thepwrite_syscall
behaves as expected when interacting with a character device file.Type of change
How Has This Been Tested?
cargo test ut_lind_fs_pwrite_to_chardev_file
Checklist: