Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: test case ut_lind_fs_mmap_invalid_offset_len #62

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

ChinmayShringi
Copy link
Contributor

Description

Fixes # (issue)

This PR updates the test case ut_lind_fs_mmap_invalid_offset_len by get_errno(), ensuring compliance with the error-checking mechanisms and proper retrieval of errno. The test case verifies the behavior of the mmap_syscall when invalid offsets (negative and beyond EOF) are provided, ensuring that EINVAL is returned appropriately. These changes improve the test case's accuracy and reliability without modifying the existing syscall implementation.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • cargo test ut_lind_fs_mmap_invalid_offset_len

Checklist:

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been added to a pull request and/or merged in other modules (native-client, lind-glibc, lind-project)

@Yaxuan-w Yaxuan-w merged commit ff107fe into main Oct 23, 2024
1 check failed
@Yaxuan-w Yaxuan-w deleted the fix-ut-lind-fs-mmap-invalid-offset-len branch October 25, 2024 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants