summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-17 14:49:47 +0000
committertimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-17 14:49:47 +0000
commit3e2bca105c2254e5d387103ad940eb7a3ac56b27 (patch)
treeaa4e1b63ebf9502206d46f53f9bdf9aca08a3988
parentcf12bd14cb9774d97bbe0865f47106cb6f1f9edb (diff)
downloadchromium_src-3e2bca105c2254e5d387103ad940eb7a3ac56b27.zip
chromium_src-3e2bca105c2254e5d387103ad940eb7a3ac56b27.tar.gz
chromium_src-3e2bca105c2254e5d387103ad940eb7a3ac56b27.tar.bz2
Fix a typo in Dr.Memory analyze script; add ASSERT lines to the list of the reports
TBR=glider Review URL: http://codereview.chromium.org/2869010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50107 0039d316-1c4b-4281-b951-d872f2087c98
-rwxr-xr-xtools/valgrind/drmemory_analyze.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/valgrind/drmemory_analyze.py b/tools/valgrind/drmemory_analyze.py
index 2f58877..d06449b 100755
--- a/tools/valgrind/drmemory_analyze.py
+++ b/tools/valgrind/drmemory_analyze.py
@@ -35,7 +35,7 @@ class DrMemoryAnalyze:
files: A list of filenames.
'''
- self.races = []
+ self.reports = []
self.used_suppressions = {}
for file in files:
self.ParseReportFile(file)
@@ -107,7 +107,9 @@ class DrMemoryAnalyze:
if match:
self.line_ = match.groups()[0].strip() + "\n"
tmp.extend(self.ReadSection())
- self.races.append(tmp)
+ self.reports.append(tmp)
+ elif self.line_.startswith("ASSERT FAILURE"):
+ self.reports.append(self.line_.strip())
self.cur_fd_.close()
@@ -115,9 +117,9 @@ class DrMemoryAnalyze:
sys.stdout.flush()
#TODO(timurrrr): support positive tests / check_sanity==True
- if len(self.races) > 0:
- logging.error("Found %i error reports" % len(self.races))
- for report_list in self.races:
+ if len(self.reports) > 0:
+ logging.error("Found %i error reports" % len(self.reports))
+ for report_list in self.reports:
report = ''
for line in report_list:
report += str(line)