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_chardev_file` #82

Closed ChinmayShringi closed 1 month ago

ChinmayShringi commented 1 month ago

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 the pwrite_syscall behaves as expected when interacting with a character device file.

Type of change

How Has This Been Tested?

Checklist: