autotest: allow autotest with valgrind to cope with new operator

this is needed for recent versions of valgrind. Without it valgrind
doesn't know that new clears memory
This commit is contained in:
Peter Barker 2018-12-05 09:18:03 +11:00 committed by Peter Barker
parent 8e63d61b9e
commit 0440106c16
1 changed files with 3 additions and 0 deletions

View File

@ -239,6 +239,9 @@ def start_SITL(binary,
log_file = valgrind_log_filepath(binary=binary, model=model) log_file = valgrind_log_filepath(binary=binary, model=model)
cmd.extend([ cmd.extend([
'valgrind', 'valgrind',
# adding this option allows valgrind to cope with the overload
# of operator new
"--soname-synonyms=somalloc=nouserintercepts",
'--vgdb-prefix=%s' % vgdb_prefix, '--vgdb-prefix=%s' % vgdb_prefix,
'-q', '-q',
'--log-file=%s' % log_file]) '--log-file=%s' % log_file])