aboutsummaryrefslogtreecommitdiffstats
path: root/test/lit.cfg
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2010-03-20 23:08:45 +0000
committerJeffrey Yasskin <jyasskin@google.com>2010-03-20 23:08:45 +0000
commit32989deb9641cf3878686b5634311a7a125f8f02 (patch)
treef960a33dda54f5db353abc6b301be29a7cbe4dcb /test/lit.cfg
parentf2de13f8d7bed958538bbd9dbeb9b15ea48456cc (diff)
downloadexternal_llvm-32989deb9641cf3878686b5634311a7a125f8f02.zip
external_llvm-32989deb9641cf3878686b5634311a7a125f8f02.tar.gz
external_llvm-32989deb9641cf3878686b5634311a7a125f8f02.tar.bz2
Add support for XFAILing valgrind runs with memory leak checking independently
of runs without leak checking. We add -vg to the triple for non-checked runs, or -vg_leak for checked runs. Also use this to XFAIL the TableGen tests, since tablegen leaks like a sieve. This includes some valgrindArgs refactoring. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99103 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.cfg')
-rw-r--r--test/lit.cfg7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/lit.cfg b/test/lit.cfg
index e65b8be..fd3120a 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -128,10 +128,9 @@ excludes = []
# Provide target_triple for use in XFAIL and XTARGET.
config.target_triple = site_exp['target_triplet']
-# When running under valgrind, we mangle '-vg' onto the end of the triple so we
-# can check it with XFAIL and XTARGET.
-if lit.useValgrind:
- config.target_triple += '-vg'
+# When running under valgrind, we mangle '-vg' or '-vg_leak' onto the end of the
+# triple so we can check it with XFAIL and XTARGET.
+config.target_triple += lit.valgrindTriple
# Provide llvm_supports_target for use in local configs.
targets = set(site_exp["TARGETS_TO_BUILD"].split())