diff --git a/tests/libft/fsoares/test_putchar_fd.c b/tests/libft/fsoares/test_putchar_fd.c index 5d9166d..f4dbeff 100644 --- a/tests/libft/fsoares/test_putchar_fd.c +++ b/tests/libft/fsoares/test_putchar_fd.c @@ -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; } diff --git a/tests/libft/fsoares/test_putendl_fd.c b/tests/libft/fsoares/test_putendl_fd.c index 2f80ae8..ca15518 100644 --- a/tests/libft/fsoares/test_putendl_fd.c +++ b/tests/libft/fsoares/test_putendl_fd.c @@ -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; } diff --git a/tests/libft/fsoares/test_putnbr_fd.c b/tests/libft/fsoares/test_putnbr_fd.c index 11908bd..e475148 100644 --- a/tests/libft/fsoares/test_putnbr_fd.c +++ b/tests/libft/fsoares/test_putnbr_fd.c @@ -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; } diff --git a/tests/libft/fsoares/test_putstr_fd.c b/tests/libft/fsoares/test_putstr_fd.c index f5607c4..689302d 100644 --- a/tests/libft/fsoares/test_putstr_fd.c +++ b/tests/libft/fsoares/test_putstr_fd.c @@ -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; }