[llvm] [NFC] [test] Add ubsan feature for tests

Reviewers: boomanaiden154

Pull Request: https://github.com/llvm/llvm-project/pull/186918
This commit is contained in:
Florian Mayer 2026-03-16 17:54:26 -07:00 committed by GitHub
parent 0fba3c0a9e
commit 7ddf9c85fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -827,6 +827,8 @@ if config.have_ondisk_cas:
if "MemoryWithOrigins" in config.llvm_use_sanitizer:
config.available_features.add("use_msan_with_origins")
if "Undefined" in config.llvm_use_sanitizer:
config.available_features.add("ubsan")
# Restrict the size of the on-disk CAS for tests. This allows testing in
# constrained environments (e.g. small TMPDIR). It also prevents leaving