Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Unified Diff: tools/valgrind/valgrind_test.py

Issue 343002: Added printing of a couple of links to documentation in case warnings are rep... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/valgrind/valgrind_test.py
===================================================================
--- tools/valgrind/valgrind_test.py (revision 30177)
+++ tools/valgrind/valgrind_test.py (working copy)
@@ -366,7 +366,11 @@
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
stuartmorgan 2009/10/27 20:28:27 The return value is non-zero if there are leaks or
class ThreadSanitizer(ValgrindTool):
"""ThreadSanitizer"""
@@ -436,7 +440,12 @@
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 @@
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)" % \
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698