From 8a9e33f834050e8e16c30e69f03191471caedda6 Mon Sep 17 00:00:00 2001 From: pioupia <49518790+pioupia@users.noreply.github.com> Date: Sat, 21 Oct 2023 11:09:29 +0200 Subject: [PATCH 1/4] Fix (FT_PUTCHAR_FD): Fix the timeout --- tests/libft/fsoares/test_putchar_fd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/libft/fsoares/test_putchar_fd.c b/tests/libft/fsoares/test_putchar_fd.c index 5d9166d0..f4dbeffe 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; } From 366ce89ea9e4c5bdf09a1d92fd9cb7810cb45fca Mon Sep 17 00:00:00 2001 From: pioupia <49518790+pioupia@users.noreply.github.com> Date: Sat, 21 Oct 2023 11:09:53 +0200 Subject: [PATCH 2/4] Fix (FT_PUTENDL_FD): Fix the timeout --- tests/libft/fsoares/test_putendl_fd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/libft/fsoares/test_putendl_fd.c b/tests/libft/fsoares/test_putendl_fd.c index 2f80ae8c..ca155186 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; } From 1ae91e6427209a0f1332a4639eb0783e21d6912f Mon Sep 17 00:00:00 2001 From: pioupia <49518790+pioupia@users.noreply.github.com> Date: Sat, 21 Oct 2023 11:10:04 +0200 Subject: [PATCH 3/4] Fix (FT_PUTNBR_FD): Fix the timeout --- tests/libft/fsoares/test_putnbr_fd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/libft/fsoares/test_putnbr_fd.c b/tests/libft/fsoares/test_putnbr_fd.c index 11908bd2..e4751488 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; } From 891ae96768bd31115b2dcb7b1a8d0402b30b79d6 Mon Sep 17 00:00:00 2001 From: pioupia <49518790+pioupia@users.noreply.github.com> Date: Sat, 21 Oct 2023 11:10:12 +0200 Subject: [PATCH 4/4] Fix (FT_PUTSTR_FD): Fix the timeout --- tests/libft/fsoares/test_putstr_fd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/libft/fsoares/test_putstr_fd.c b/tests/libft/fsoares/test_putstr_fd.c index f5607c46..689302d5 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; }