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

Unified Diff: tools/run-tests.py

Issue 2592663004: [test] Add back lsan leak detection (Closed)
Patch Set: Add suppressions Created 3 years, 11 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
Index: tools/run-tests.py
diff --git a/tools/run-tests.py b/tools/run-tests.py
index c445a6359f7fab961cbd3bb20d777dc180ccc17e..c1e0b156cff0fe9e768998ebae3b80e396adbe9f 100755
--- a/tools/run-tests.py
+++ b/tools/run-tests.py
@@ -403,7 +403,14 @@ def SetupEnvironment(options):
)
if options.asan:
- os.environ['ASAN_OPTIONS'] = symbolizer
+ os.environ['ASAN_OPTIONS'] = ":".join([
+ 'detect_leaks=1',
+ symbolizer,
+ ])
+ os.environ['LSAN_OPTIONS'] = ":".join([
+ 'suppressions=%s' % os.path.join(
+ BASE_DIR, 'tools', 'memory', 'lsan', 'suppressions.txt'),
+ ])
if options.sancov_dir:
assert os.path.exists(options.sancov_dir)

Powered by Google App Engine
This is Rietveld 408576698