[compiler-rt] [test] Disable ASLR on LSAN+ASAN tests on NetBSD

This commit is contained in:
Michał Górny 2019-12-18 17:07:34 +01:00
parent 5a956c85df
commit 9102a59084
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,8 @@ elif lsan_lit_test_mode == "AddressSanitizer":
config.name = "LeakSanitizer-AddressSanitizer"
lsan_cflags = ["-fsanitize=address"]
config.available_features.add('asan')
if config.host_os == 'NetBSD':
config.substitutions.insert(0, ('%run', config.netbsd_noaslr_prefix))
else:
lit_config.fatal("Unknown LSan test mode: %r" % lsan_lit_test_mode)
config.name += config.name_suffix