summaryrefslogtreecommitdiffstats
path: root/tools/valgrind
diff options
context:
space:
mode:
authortimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-15 16:48:44 +0000
committertimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-15 16:48:44 +0000
commit525c171d7506e531cf923e45dcbfb68001056b4b (patch)
tree27c10512df5b6fd67531fb52b38d1c19f9247949 /tools/valgrind
parent7107d9d24e79737ef722239c74a92b962483e199 (diff)
downloadchromium_src-525c171d7506e531cf923e45dcbfb68001056b4b.zip
chromium_src-525c171d7506e531cf923e45dcbfb68001056b4b.tar.gz
chromium_src-525c171d7506e531cf923e45dcbfb68001056b4b.tar.bz2
Valgrind runner: support --tool_flags="--leak-check=no"
BUG=73024 TEST=./tools/valgrind/chrome_tests.sh -t googleurl [--tool_flags="--leak-check=yes|no"] | grep -i "leak" TBR=glider Review URL: http://codereview.chromium.org/6526018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74955 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/valgrind')
-rwxr-xr-xtools/valgrind/valgrind_test.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/valgrind/valgrind_test.py b/tools/valgrind/valgrind_test.py
index b2025f8..44423c03 100755
--- a/tools/valgrind/valgrind_test.py
+++ b/tools/valgrind/valgrind_test.py
@@ -487,6 +487,9 @@ class Memcheck(ValgrindTool):
return "memcheck"
def ExtendOptionParser(self, parser):
+ parser.add_option("--leak-check", "--leak_check", type="string",
+ default="yes", # --leak-check=yes is equivalent of =full
+ help="perform leak checking at the end of the run")
parser.add_option("", "--show_all_leaks", action="store_true",
default=False,
help="also show less blatant leaks")
@@ -495,7 +498,8 @@ class Memcheck(ValgrindTool):
help="Show whence uninitialized bytes came. 30% slower.")
def ToolSpecificFlags(self):
- ret = ["--leak-check=full", "--gen-suppressions=all", "--demangle=no"]
+ ret = ["--gen-suppressions=all", "--demangle=no"]
+ ret += ["--leak-check=%s" % self._options.leak_check]
if self._options.show_all_leaks:
ret += ["--show-reachable=yes"]