From 17ba828313dc9e19a58eb94a8f67233d8d304236 Mon Sep 17 00:00:00 2001 From: Hugo LAMY Date: Wed, 22 Dec 2021 23:42:57 +0100 Subject: [PATCH] ajout flag track origin pour test valgrind --- unitests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unitests.sh b/unitests.sh index aa3a7c9..a27c605 100644 --- a/unitests.sh +++ b/unitests.sh @@ -271,7 +271,7 @@ cd $(dirname $0) # function test minishell in classic script mode, but cannot handle signals and ctrl-d function test_minishell_valgrind { - valgrind="valgrind --suppressions=../valgrind_readline.supp --leak-check=full --show-reachable=yes --track-fds=yes" + valgrind="valgrind --suppressions=../valgrind_readline.supp --leak-check=full --show-reachable=yes --track-fds=yes --track-origins=yes" minishell_execution=$( $valgrind $CURRENT_D/minishell <<<"$commands" 2>../logs/valgrind.log ) valgrind_output="$( cat ../logs/valgrind.log | grep -e "ERROR SUMMARY: " -e "definitely lost: " -e "indirectly lost: " -e "possibly lost: " -e "still reachable: " -e "FILE DESCRIPTORS: " )" valgrind_output="$( cut -c 13- <<< "$valgrind_output" )"