-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ASAN execution for the MLIR Python tests
First the leak sanitizer has to be disabled, as even an empty script leads to leak detection with Python. Then we need to preload the ASAN runtime, as the main binary (python) won't be linked against it. This will only work on Linux right now. Differential Revision: https://reviews.llvm.org/D111004
- Loading branch information
Showing
2 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
# Disable with sanitizers for now, this require some more setup apparently. | ||
for san in ['asan', 'msan', 'ubsan']: | ||
if (san in config.available_features): | ||
config.unsupported = True | ||
|
||
config.environment['ASAN_OPTIONS'] = 'detect_leaks=0' | ||
if not config.enable_bindings_python: | ||
config.unsupported = True | ||
config.excludes.add('python_test_ops.td') |