diff --git a/Tools/autotest/sim_vehicle.py b/Tools/autotest/sim_vehicle.py index f0e4c0253b..376582c33a 100755 --- a/Tools/autotest/sim_vehicle.py +++ b/Tools/autotest/sim_vehicle.py @@ -538,13 +538,14 @@ 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) + cmd.append("--soname-synonyms=somalloc=nouserintercepts") if opts.callgrind: cmd_name += " (callgrind)" - cmd.append("valgrind --tool=callgrind") + cmd.append("valgrind") + cmd.append("--tool=callgrind") if opts.gdb or opts.gdb_stopped: cmd_name += " (gdb)" cmd.append("gdb")