about summary refs log tree commit diff homepage
path: root/unittests
diff options
context:
space:
mode:
authorMartin Nowack <m.nowack@imperial.ac.uk>2018-06-09 19:36:01 +0100
committerCristian Cadar <c.cadar@imperial.ac.uk>2018-07-04 22:14:58 +0100
commit8f2b9b543b7e226c6ea06917a720452267012c22 (patch)
tree25bb4b5f3657003c4e3615be00104ee6855c9495 /unittests
parenteb75a38011726d4a045f3db3edbfef924f62c737 (diff)
downloadklee-8f2b9b543b7e226c6ea06917a720452267012c22.tar.gz
Support sanitizer suppression files with lit-based testing
Diffstat (limited to 'unittests')
-rw-r--r--unittests/lit-unit-tests-common.site.cfg.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/unittests/lit-unit-tests-common.site.cfg.in b/unittests/lit-unit-tests-common.site.cfg.in
index f106152f..38626995 100644
--- a/unittests/lit-unit-tests-common.site.cfg.in
+++ b/unittests/lit-unit-tests-common.site.cfg.in
@@ -7,3 +7,5 @@ config.unit_test_exe_suffix = "@UNIT_TEST_EXE_SUFFIX@"
 
 # Let the main config do the real work.
 lit_config.load_config(config, "@CMAKE_SOURCE_DIR@/unittests/lit-unit-tests-common.cfg")
+config.environment['LSAN_OPTIONS'] = "suppressions=@KLEE_UTILS_DIR@/sanitizers/lsan.txt"
+config.environment['UBSAN_OPTIONS'] = "suppressions=@KLEE_UTILS_DIR@/sanitizers/ubsan.txt"