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) |