ajout flag track origin pour test valgrind
This commit is contained in:
@@ -271,7 +271,7 @@ cd $(dirname $0)
|
|||||||
# function test minishell in classic script mode, but cannot handle signals and ctrl-d
|
# function test minishell in classic script mode, but cannot handle signals and ctrl-d
|
||||||
function test_minishell_valgrind
|
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 )
|
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="$( 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" )"
|
valgrind_output="$( cut -c 13- <<< "$valgrind_output" )"
|
||||||
|
|||||||
Reference in New Issue
Block a user