ajout flag track origin pour test valgrind

This commit is contained in:
Hugo LAMY
2021-12-22 23:42:57 +01:00
parent f81f480746
commit 17ba828313

View File

@@ -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" )"