Skip to content

Move Swift modification to a place where it is not a noop #9398

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions lldb/test/Unit/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@
# suffixes: A list of file extensions to treat as test files.
config.suffixes = []

# Begin Swift mod.
# Swift's libReflection builds without ASAN, which causes a known
# false positive in std::vector. We also want to support testing a sanitized
# lldb using unsanitized llvm, clang, and swift libraries.
config.environment['ASAN_OPTIONS'] = 'detect_container_overflow=0'
# End Swift mod.

# test_source_root: The root path where unit test binaries are located.
# test_exec_root: The root path where tests should be run.
config.test_source_root = os.path.join(config.lldb_obj_root, "unittests")
Expand All @@ -45,5 +38,13 @@
config.environment["ASAN_OPTIONS"] = "detect_stack_use_after_return=1"
config.environment["TSAN_OPTIONS"] = "halt_on_error=1"

# Begin Swift mod.
# Swift's libReflection builds without ASAN, which causes a known
# false positive in std::vector. We also want to support testing a sanitized
# lldb using unsanitized llvm, clang, and swift libraries.
config.environment['ASAN_OPTIONS'] += ':' + 'detect_container_overflow=0'
# End Swift mod.


# testFormat: The test format to use to interpret tests.
config.test_format = lit.formats.GoogleTest(config.llvm_build_mode, "Tests")