force valgrind output on crash
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd "$OUTDIR"
|
||||
valgrind $VALGRIND_ARGS ./$EXEC_FILE
|
||||
cat "valgrind.log"
|
||||
myprint "${GREEN}valgrind log saved to ${CYAN}$OUTDIR/exec.log"
|
||||
rm -f "valgrind.log"
|
||||
set +e
|
||||
valgrind --log-file=valgrind.log $VALGRIND_ARGS ./$EXEC_FILE
|
||||
set -e
|
||||
[ -f "valgrind.log" ] && cat "valgrind.log" || error "valgrind exited with errors"
|
||||
myprint "${GREEN}valgrind log saved to ${CYAN}$OUTDIR/valgrind.log"
|
||||
cd ..
|
||||
|
||||
Reference in New Issue
Block a user