Browse Source

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
mission-4.1.18
Andrew Tridgell 6 years ago
parent
commit
acf379cd77
  1. 5
      Tools/autotest/sim_vehicle.py

5
Tools/autotest/sim_vehicle.py

@ -538,7 +538,10 @@ def start_vehicle(binary, autotest, opts, stuff, loc): @@ -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…
Cancel
Save