diff options
author | timurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-21 13:06:10 +0000 |
---|---|---|
committer | timurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-21 13:06:10 +0000 |
commit | 0807fec65a7047bb1059a0ccd2b181566d728079 (patch) | |
tree | 5987a1b8e8cb8ca8f9d4d4474a4ec672294b646d /tools/valgrind/drmemory_analyze.py | |
parent | 451b182e658c438487eb4e7f5482b200b355c93c (diff) | |
download | chromium_src-0807fec65a7047bb1059a0ccd2b181566d728079.zip chromium_src-0807fec65a7047bb1059a0ccd2b181566d728079.tar.gz chromium_src-0807fec65a7047bb1059a0ccd2b181566d728079.tar.bz2 |
Print the TSan/Dr.Memory reports count to stdout instead of stderr; otherwise
the output may be interleaved with the reports.
Also, add a link to the docs on suppressing Dr.Memory reports.
TBR=bruening,glider
Review URL: http://codereview.chromium.org/9017012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115322 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/valgrind/drmemory_analyze.py')
-rwxr-xr-x | tools/valgrind/drmemory_analyze.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tools/valgrind/drmemory_analyze.py b/tools/valgrind/drmemory_analyze.py index 4d15e61..97d4635 100755 --- a/tools/valgrind/drmemory_analyze.py +++ b/tools/valgrind/drmemory_analyze.py @@ -44,11 +44,9 @@ class DrMemoryError: if self._testcase: output += "The report came from the `%s` test.\n" % self._testcase output += "Suppression (error hash=#%016X#):\n" % self.ErrorHash() + output += (" For more info on using suppressions see " + "http://dev.chromium.org/developers/how-tos/using-drmemory#TOC-Suppressing-error-reports-from-the-\n") output += "{\n%s\n}\n" % self._suppression - - # TODO(timurrrr): docs on suppressing? - #output += (" For more info on using suppressions see " - # "http://dev.chromium.org/developers/how-tos/using-valgrind#TOC-Suppressing-Errors") return output # This is a device-independent hash identifying the suppression. @@ -167,14 +165,14 @@ class DrMemoryAnalyzer: logging.info("PASS: No error reports found") return 0 - logging.error("Found %i error reports" % len(to_report)) + sys.stdout.flush() sys.stderr.flush() + logging.info("Found %i error reports" % len(to_report)) for report in to_report: self.error_count += 1 logging.info("Report #%d\n%s" % (self.error_count, report)) - sys.stdout.flush() - logging.error("Total: %i error reports" % len(to_report)) - sys.stderr.flush() + logging.info("Total: %i error reports" % len(to_report)) + sys.stdout.flush() return -1 |