mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
autotest: allow sim_vehicle 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
debea191c9
commit
acf379cd77
@ -538,7 +538,10 @@ def start_vehicle(binary, autotest, opts, stuff, loc):
|
||||
cmd = []
|
||||
if opts.valgrind:
|
||||
cmd_name += " (valgrind)"
|
||||
cmd.append("valgrind")
|
||||
# adding this option allows valgrind to cope with the overload
|
||||
# of operator new
|
||||
valgrind_opts = "--soname-synonyms=somalloc=nouserintercepts"
|
||||
cmd.append("valgrind " + valgrind_opts)
|
||||
if opts.callgrind:
|
||||
cmd_name += " (callgrind)"
|
||||
cmd.append("valgrind --tool=callgrind")
|
||||
|
Loading…
Reference in New Issue
Block a user