Skip to content

Commit

Permalink
Fix/fd functions timeout (#1)
Browse files Browse the repository at this point in the history
* Fix (FT_PUTCHAR_FD): Fix the timeout

* Fix (FT_PUTENDL_FD): Fix the timeout

* Fix (FT_PUTNBR_FD): Fix the timeout

* Fix (FT_PUTSTR_FD): Fix the timeout

---------

Co-authored-by: pioupia <[email protected]>
  • Loading branch information
Desoroxxx and pioupia authored Oct 19, 2024
1 parent 57762fb commit 1628e80
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/libft/fsoares/test_putchar_fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ int test_putchar_fd()
set_signature_tn(6, "ft_putchar_fd(%i:%s, fd: %i)", 't', escape_chr('t'), fd);
null_null_check(ft_putchar_fd('t', fd), res);

close(fd);
remove("./fsoares");
return res;
}
Expand Down
1 change: 1 addition & 0 deletions tests/libft/fsoares/test_putendl_fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ int test_putendl_fd()
set_signature_tn(6, "ft_putendl_fd(\"%s\", fd: %i)", "teste", fd);
null_null_check(ft_putendl_fd("teste", fd), res);

close(fd);
remove("./fsoares");
return res;
}
Expand Down
1 change: 1 addition & 0 deletions tests/libft/fsoares/test_putnbr_fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ int test_putnbr_fd()
set_signature_tn(6, "ft_putnbr_fd(%i, fd: %i)", 10000, fd);
null_null_check(ft_putnbr_fd(10000, fd), res);

close(fd);
remove("./fsoares");
return res;
}
Expand Down
1 change: 1 addition & 0 deletions tests/libft/fsoares/test_putstr_fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ int test_putstr_fd()
set_signature_tn(6, "ft_putstr_fd(\"%s\", fd: %i)", "teste", fd);
null_null_check(ft_putstr_fd("teste", fd), res);

close(fd);
remove("./fsoares");
return res;
}
Expand Down

0 comments on commit 1628e80

Please sign in to comment.