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