From 0440106c163dd1c054a97e5b641c04baef99430a Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 5 Dec 2018 09:18:03 +1100 Subject: [PATCH] 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 --- Tools/autotest/pysim/util.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tools/autotest/pysim/util.py b/Tools/autotest/pysim/util.py index 7926f51567..c1cb44145b 100644 --- a/Tools/autotest/pysim/util.py +++ b/Tools/autotest/pysim/util.py @@ -239,6 +239,9 @@ def start_SITL(binary, log_file = valgrind_log_filepath(binary=binary, model=model) cmd.extend([ 'valgrind', + # adding this option allows valgrind to cope with the overload + # of operator new + "--soname-synonyms=somalloc=nouserintercepts", '--vgdb-prefix=%s' % vgdb_prefix, '-q', '--log-file=%s' % log_file])