summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-12-18 17:07:34 +0100
committerMichał Górny <mgorny@gentoo.org>2019-12-18 17:21:14 +0100
commit9102a59084fdb613e1ad185b64a0246048138fc9 (patch)
treef5d5e59f2f68f8d1701b5fd70b7f9d4abe0d6044
parent5a956c85df9f5fd598c5292af9c2478d51566205 (diff)
downloadbcm5719-llvm-9102a59084fdb613e1ad185b64a0246048138fc9.tar.gz
bcm5719-llvm-9102a59084fdb613e1ad185b64a0246048138fc9.zip
[compiler-rt] [test] Disable ASLR on LSAN+ASAN tests on NetBSD
-rw-r--r--compiler-rt/test/lsan/lit.common.cfg.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/test/lsan/lit.common.cfg.py b/compiler-rt/test/lsan/lit.common.cfg.py
index e1a2c4e0877..e1e496b09e3 100644
--- a/compiler-rt/test/lsan/lit.common.cfg.py
+++ b/compiler-rt/test/lsan/lit.common.cfg.py
@@ -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
OpenPOWER on IntegriCloud