From: Daniel Dunbar Date: Sat, 20 Mar 2010 21:13:08 +0000 (+0000) Subject: tests: Mangle '-vg' onto the end of the triple when running under valgrind, so X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1fa09661a7949a4c55c331ea2c50e9bb35fb634;p=clang tests: Mangle '-vg' onto the end of the triple when running under valgrind, so we can use the standard XFAIL and XTARGET to conditional tests based on valgrind. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99089 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/lit.cfg b/test/lit.cfg index beb8ae03b4..b306331703 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -119,6 +119,11 @@ def inferClang(PATH): return clang +# 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' + config.clang = inferClang(config.environment['PATH']) if not lit.quiet: lit.note('using clang: %r' % config.clang)