From: = <=> Date: Sun, 2 Nov 2025 13:16:05 +0000 (+0100) Subject: valgrind X-Git-Url: https://git.uwuaxy.net/?a=commitdiff_plain;h=bfe6914464e1a2a7fdc421442c151b217a84453c;p=axy%2Fft%2Fft_printf.git valgrind --- diff --git a/test.c b/test.c index 98319fc..a506bce 100644 --- a/test.c +++ b/test.c @@ -6,17 +6,10 @@ /* By: agilliar +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/10/31 23:55:18 by agilliar #+# #+# */ -/* Updated: 2025/11/01 00:07:17 by agilliar ### ########.fr */ +/* Updated: 2025/11/02 14:15:59 by agilliar ### ########.fr */ /* */ /* ************************************************************************** */ -/* - cc test.c libftprintf.a && ./a.out > test.out && [ \ - "$(awk "NR % 2 == 1 { print; }" test.out)" \ - == "$(awk "NR % 2 == 0 { print; }" test.out)" ] \ - || echo "TEST FAILED" -*/ - #include #include #include "libftprintf.h" diff --git a/test.sh b/test.sh index c5a8010..e9a144e 100755 --- a/test.sh +++ b/test.sh @@ -2,7 +2,7 @@ make -cc test.c libftprintf.a && ./a.out > test.out && [ \ +cc test.c libftprintf.a && valgrind ./a.out > test.out && [ \ "$(awk "NR % 2 == 1 { print; }" test.out)" \ == "$(awk "NR % 2 == 0 { print; }" test.out)" ] \ || echo "TEST FAILED"