Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Fix: #67, Errors that were happening in fsoares's tests, at functions… #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/libft/fsoares/test_putendl_fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ int single_test_putendl(int test_number, char *str, int fd)

int test_putendl_fd()
{
int fd = open("fsoares", O_RDWR | O_CREAT);
int fd = open("fsoares", O_RDWR | O_CREAT, S_IRWXU);

int res = single_test_putendl(1, "", fd);
res = single_test_putendl(2, "abcdef", fd) && res;
Expand Down
2 changes: 1 addition & 1 deletion tests/libft/fsoares/test_putnbr_fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ int single_test_putnbr(int test_number, int n, int fd)

int test_putnbr_fd()
{
int fd = open("fsoares", O_RDWR | O_CREAT);
int fd = open("fsoares", O_RDWR | O_CREAT, S_IRWXU);

int res = single_test_putnbr(1, 0, fd);
res = single_test_putnbr(2, 10000043, fd) && res;
Expand Down
2 changes: 1 addition & 1 deletion tests/libft/fsoares/test_putstr_fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ int single_test_putstr(int test_number, char *str, int fd)

int test_putstr_fd()
{
int fd = open("fsoares", O_RDWR | O_CREAT);
int fd = open("fsoares", O_RDWR | O_CREAT, S_IRWXU);

int res = single_test_putstr(1, "abcdef", fd);
res = single_test_putstr(2, "\n1234", fd) && res;
Expand Down