You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.
… at functions: ft_putstr_fd, ft_putnbr_fd and ft_putendl_fd. The file to be opened did not have the correct permissions (write and read). It was added 'S_IRWXU' flag to 'open' of 'fd' variable
Changes to be committed:
modified: tests/libft/fsoares/test_putendl_fd.c
modified: tests/libft/fsoares/test_putnbr_fd.c
modified: tests/libft/fsoares/test_putstr_fd.c
… at functions: ft_putstr_fd, ft_putnbr_fd and ft_putendl_fd. The file to be opened did not have the correct permissions (write and read). It was added 'S_IRWXU' flag to 'open' of 'fd' variable (#3)
Changes to be committed:
modified: tests/libft/fsoares/test_putendl_fd.c
modified: tests/libft/fsoares/test_putnbr_fd.c
modified: tests/libft/fsoares/test_putstr_fd.c
Co-authored-by: Lis Costa <[email protected]>
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When I run the command francinette to test the entire libft,
I get an error in two functions
Summary:
Failed tests: putendl_fd, putstr_fd
Errors found:
For ft_putstr_fd, in
/nfs/homes/usr/francinette/tests/libft/fsoares/test_putstr_fd.c:
Error in test 5: ft_putstr_fd("\nend!", fd: -1): expected:
"abcdef\n1234\t567\nend!", content of the file: ""
For ft_putendl_fd, in
/nfs/homes/usr/francinette/tests/libft/fsoares/test_putendl_fd.c:
Error in test 5: ft_putendl_fd("end!", fd: -1): expected:
"\nabcdef\n1234\n567\nend!\n", content of the file: ""
And when I run all functions I get OK
✔ Compiling tests: fsoares (my own)
ℹ Testing:
ft_putendl_fd : OK
ft_putstr_fd : OK
And the fd -1 really doesn't exist, I thought of solving it in a very simple way, only checking if fd is -1 and turning it into a positive number...
The text was updated successfully, but these errors were encountered: