File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1+ {
2+ <s_decode_header>
3+ Memcheck:Cond
4+ ...
5+ fun:s_decode_header
6+ }
Original file line number Diff line number Diff line change @@ -31,7 +31,14 @@ echo "Run tests with valgrind..."
3131for i in ` seq 1 10` ; do sleep 300 && echo " Valgrind tests in Progress..." ; done &
3232alive_pid=$!
3333
34- valgrind --error-exitcode=666 --leak-check=full --show-leak-kinds=all --errors-for-leak-kinds=all ./test > test_std.txt 2> >( tee -a test_err.txt >&2 ) || { kill $alive_pid ; echo " Valgrind failed" ; exit 1; }
34+ readonly VALGRIND_OPTS=" --error-exitcode=666 --leak-check=full --show-leak-kinds=all --errors-for-leak-kinds=all"
35+
36+ readonly distro=" $( lsb_release -si) _$( lsb_release -sc) "
37+ readonly suppfile=" .ci/Valgrind-${distro} .supp"
38+ function get_suppfile() { [ -f " $suppfile " ] && echo " --suppressions=$suppfile " || echo " " ; }
39+ readonly VALGRIND_EXTRA_OPTS=$( get_suppfile)
40+
41+ valgrind $VALGRIND_OPTS $VALGRIND_EXTRA_OPTS ./test > test_std.txt 2> >( tee -a test_err.txt >&2 ) || { kill $alive_pid ; echo " Valgrind failed" ; exit 1; }
3542
3643kill $alive_pid
3744
You can’t perform that action at this time.
0 commit comments