mirror of https://github.com/ArduPilot/ardupilot
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:
parent
8e63d61b9e
commit
0440106c16
|
@ -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])
|
||||||
|
|
Loading…
Reference in New Issue