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

Unified Diff: tools/valgrind/tsan_analyze.py

Issue 8816016: TSan: print error reports to stdout instead of stderr (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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/tsan_analyze.py
===================================================================
--- tools/valgrind/tsan_analyze.py (revision 113180)
+++ tools/valgrind/tsan_analyze.py (working copy)
@@ -236,8 +236,10 @@
retcode = 0
if reports:
logging.error("FAIL! Found %i report(s)" % len(reports))
+ sys.stderr.flush()
for report in reports:
- logging.error('\n' + report)
+ logging.info('\n' + report)
+ sys.stdout.flush()
retcode = -1
# Report tool's insanity even if there were errors.
@@ -265,6 +267,7 @@
parser.error("no filename specified")
filenames = args
+ logging.getLogger().setLevel(logging.INFO)
analyzer = TsanAnalyzer(options.source_dir, use_gdb=True)
return analyzer.Report(filenames, None)
« 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