chore: update valgrind_check.sh script

This commit is contained in:
2025-08-31 08:52:32 +02:00
parent e62fa72418
commit c2dbbc2fab

View File

@@ -9,8 +9,13 @@ main() {
local valgrind_flags="--leak-check=full --show-leak-kinds=all --track-origins=yes --verbose" local valgrind_flags="--leak-check=full --show-leak-kinds=all --track-origins=yes --verbose"
if [[ ! -f "$program" ]]; then if [[ ! -f "$program" ]]; then
echo "Error: Program '$program' not found. Build it first." echo "Building $program..."
exit 1 make
if [[ $? != 0 ]]; then
echo "Error while compiling $program, aborting"
exit 1
fi
fi fi
echo "Running Valgrind on $program..." echo "Running Valgrind on $program..."