summaryrefslogtreecommitdiffstats
path: root/tools/valgrind/valgrind_test.py
diff options
context:
space:
mode:
authortimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-29 11:31:50 +0000
committertimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-29 11:31:50 +0000
commit72477d8668af94974138a84be34c031c7bc0a2e1 (patch)
tree5765320b7b984547ff545bef80a9357e57d58e85 /tools/valgrind/valgrind_test.py
parentb0db42f4873718dbc15443868777feeb25ba3fa4 (diff)
downloadchromium_src-72477d8668af94974138a84be34c031c7bc0a2e1.zip
chromium_src-72477d8668af94974138a84be34c031c7bc0a2e1.tar.gz
chromium_src-72477d8668af94974138a84be34c031c7bc0a2e1.tar.bz2
Avoid duplicate error reports / suppressions when UI test reports are analyzed separately
Review URL: http://codereview.chromium.org/3056025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54118 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/valgrind/valgrind_test.py')
-rwxr-xr-xtools/valgrind/valgrind_test.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/tools/valgrind/valgrind_test.py b/tools/valgrind/valgrind_test.py
index 2da5644..12293e7 100755
--- a/tools/valgrind/valgrind_test.py
+++ b/tools/valgrind/valgrind_test.py
@@ -437,9 +437,10 @@ class ValgrindTool(BaseTool):
ppids = set([int(f.split(".")[-2]) \
for f in filenames if re.search("\.[0-9]+\.[0-9]+$", f)])
+ analyzer = self.CreateAnalyzer()
if len(ppids) == 0:
# Fast path - no browser wrapper was set.
- return self.CreateAnalyzer(filenames).Report(check_sanity)
+ return analyzer.Report(filenames, check_sanity)
ret = 0
for ppid in ppids:
@@ -453,7 +454,7 @@ class ValgrindTool(BaseTool):
if re.search("\.%d\.[0-9]+$" % ppid, f)]
# check_sanity won't work with browser wrappers
assert check_sanity == False
- ret |= self.CreateAnalyzer(ppid_filenames).Report()
+ ret |= analyzer.Report(ppid_filenames)
print "====================================================="
sys.stdout.flush()
@@ -502,9 +503,9 @@ class Memcheck(ValgrindTool):
return ret
- def CreateAnalyzer(self, filenames):
+ def CreateAnalyzer(self):
use_gdb = common.IsMac()
- return memcheck_analyze.MemcheckAnalyze(self._source_dir, filenames,
+ return memcheck_analyze.MemcheckAnalyzer(self._source_dir,
self._options.show_all_leaks,
use_gdb=use_gdb)
@@ -656,9 +657,9 @@ class ThreadSanitizerPosix(ThreadSanitizerBase, ValgrindTool):
proc += ["-v"]
return proc
- def CreateAnalyzer(self, filenames):
+ def CreateAnalyzer(self):
use_gdb = common.IsMac()
- return tsan_analyze.TsanAnalyze(self._source_dir, filenames)
+ return tsan_analyze.TsanAnalyzer(self._source_dir)
def Analyze(self, check_sanity=False):
ret = self.GetAnalyzeResults(check_sanity)
@@ -702,8 +703,8 @@ class ThreadSanitizerWindows(ThreadSanitizerBase, PinTool):
def Analyze(self, check_sanity=False):
filenames = glob.glob(self.TMP_DIR + "/tsan.*")
- analyzer = tsan_analyze.TsanAnalyze(self._source_dir, filenames)
- ret = analyzer.Report(check_sanity)
+ analyzer = tsan_analyze.TsanAnalyzer(self._source_dir)
+ ret = analyzer.Report(filenames, check_sanity)
if ret != 0:
logging.info(self.INFO_MESSAGE)
return ret