From ff324507b28c5ad9a2331f475a453c571d04d058 Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Wed, 16 Dec 2015 12:32:15 +0000 Subject: Propagate AddressSanitizer, LeakSanitizer (part of AddressSanitizer), MemorySanitzer and ThreadSanitizer environment variables when running lit tests. This makes it easy suppress errors in sanitized versions of KLEE --- test/lit.cfg | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/lit.cfg b/test/lit.cfg index 0be49bd8..06ad17aa 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -56,6 +56,14 @@ def addEnv(name): addEnv('HOME') addEnv('PWD') +# Sanitizer environment variables +addEnv('ASAN_OPTIONS') +addEnv('ASAN_SYMBOLIZER_PATH') +addEnv('LSAN_OPTIONS') +addEnv('MSAN_OPTIONS') +addEnv('MSAN_SYMBOLIZER_PATH') +addEnv('TSAN_OPTIONS') + # llvm-gcc on Ubuntu needs to be told where to look # for headers. If user has these in their environment # we should propagate to test environment -- cgit 1.4.1