Skip to content

Commit 5243ae3

Browse files
Merge pull request #9398 from adrian-prantl/asan-filter
Move Swift modification to a place where it is not a noop
2 parents bb0d154 + 4beb678 commit 5243ae3

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

lldb/test/Unit/lit.cfg.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@
1414
# suffixes: A list of file extensions to treat as test files.
1515
config.suffixes = []
1616

17-
# Begin Swift mod.
18-
# Swift's libReflection builds without ASAN, which causes a known
19-
# false positive in std::vector. We also want to support testing a sanitized
20-
# lldb using unsanitized llvm, clang, and swift libraries.
21-
config.environment['ASAN_OPTIONS'] = 'detect_container_overflow=0'
22-
# End Swift mod.
23-
2417
# test_source_root: The root path where unit test binaries are located.
2518
# test_exec_root: The root path where tests should be run.
2619
config.test_source_root = os.path.join(config.lldb_obj_root, "unittests")
@@ -45,5 +38,13 @@
4538
config.environment["ASAN_OPTIONS"] = "detect_stack_use_after_return=1"
4639
config.environment["TSAN_OPTIONS"] = "halt_on_error=1"
4740

41+
# Begin Swift mod.
42+
# Swift's libReflection builds without ASAN, which causes a known
43+
# false positive in std::vector. We also want to support testing a sanitized
44+
# lldb using unsanitized llvm, clang, and swift libraries.
45+
config.environment['ASAN_OPTIONS'] += ':' + 'detect_container_overflow=0'
46+
# End Swift mod.
47+
48+
4849
# testFormat: The test format to use to interpret tests.
4950
config.test_format = lit.formats.GoogleTest(config.llvm_build_mode, "Tests")

0 commit comments

Comments
 (0)