summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authortimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-27 21:09:39 +0000
committertimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-27 21:09:39 +0000
commita7ac93666794a791764861666053f667e52d5a68 (patch)
tree1d0548a0330615f8f2646e246f26a90f35475a34 /tools
parent833fa265a5239fca9c675fb029cd2ef53b5c5aa7 (diff)
downloadchromium_src-a7ac93666794a791764861666053f667e52d5a68.zip
chromium_src-a7ac93666794a791764861666053f667e52d5a68.tar.gz
chromium_src-a7ac93666794a791764861666053f667e52d5a68.tar.bz2
Added printing of a couple of links to documentation in case warnings are reporteed.
I think this may increase the popularity and usability of our tools. Review URL: http://codereview.chromium.org/343002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30246 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rwxr-xr-xtools/valgrind/valgrind_test.py17
1 files changed, 14 insertions, 3 deletions
diff --git a/tools/valgrind/valgrind_test.py b/tools/valgrind/valgrind_test.py
index bdbdd0c..448965a 100755
--- a/tools/valgrind/valgrind_test.py
+++ b/tools/valgrind/valgrind_test.py
@@ -366,7 +366,11 @@ class Memcheck(ValgrindTool):
use_gdb = (sys.platform == 'darwin')
analyzer = memcheck_analyze.MemcheckAnalyze(self._source_dir, filenames, self._options.show_all_leaks,
use_gdb=use_gdb)
- return analyzer.Report()
+ ret = analyzer.Report()
+ if ret != 0:
+ logging.info("Please see http://dev.chromium.org/developers/how-tos/"
+ "using-valgrind for the info on Memcheck/Valgrind")
+ return ret
class ThreadSanitizer(ValgrindTool):
"""ThreadSanitizer"""
@@ -436,7 +440,12 @@ class ThreadSanitizer(ValgrindTool):
use_gdb = (sys.platform == 'darwin')
analyzer = tsan_analyze.TsanAnalyze(self._source_dir, filenames,
use_gdb=use_gdb)
- return analyzer.Report()
+ ret = analyzer.Report()
+ if ret != 0:
+ logging.info("Please see http://dev.chromium.org/developers/how-tos/"
+ "using-valgrind/threadsanitizer for the info on "
+ "ThreadSanitizer")
+ return ret
class ToolFactory:
@@ -445,7 +454,9 @@ class ToolFactory:
return Memcheck()
if tool_name == "tsan":
if sys.platform != 'linux2':
- logging.info("WARNING: ThreadSanitizer is not working yet on Mac")
+ logging.info("WARNING: ThreadSanitizer may be unstable on Mac.")
+ logging.info("See http://code.google.com/p/data-race-test/wiki/"
+ "ThreadSanitizerOnMacOsx for the details")
return ThreadSanitizer()
raise RuntimeError, "Unknown tool" \
"(tool=%s, platform=%s)" % \