remove test_file.tmp and make test.c remove it after using it

This commit is contained in:
2025-03-30 15:56:00 +02:00
parent 2c298fe2b4
commit 3b97b88f9b
3 changed files with 2 additions and 2 deletions

BIN
test

Binary file not shown.

3
test.c
View File

@ -6,7 +6,7 @@
/* By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/03/29 19:53:58 by tomoron #+# #+# */
/* Updated: 2025/03/29 19:54:24 by tomoron ### ########.fr */
/* Updated: 2025/03/30 15:55:13 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -145,6 +145,7 @@ int test_read(void)
TEST("read to null pointer, return", ft_read(fd, NULL, 4) == (size_t)-1)
TEST("read to null pointer, errno", errno == 14)
close(fd);
unlink("test_file.tmp");
return(nb_tests == passed);
}

View File

@ -1 +0,0 @@
patate douce