remove test_file.tmp and make test.c remove it after using it
This commit is contained in:
3
test.c
3
test.c
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user