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

Wrong check for errno values in tests of ft_write #3

Open
JonathanDUFOUR opened this issue Jul 8, 2024 · 0 comments
Open

Wrong check for errno values in tests of ft_write #3

JonathanDUFOUR opened this issue Jul 8, 2024 · 0 comments

Comments

@JonathanDUFOUR
Copy link

The last test of the function ft_write checks that the function returns a correct error value (-1) and that it sets correctly the value of errno depending on the error that occurred. In that test, NULL is passed as the second argument, and the currently expected errno value is EINVAL, but this is wrong. Indeed, the correct expected errno value is EFAULT.

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

No branches or pull requests

1 participant