]> granicus.if.org Git - clang/commitdiff
tests: Mangle '-vg' onto the end of the triple when running under valgrind, so
authorDaniel Dunbar <daniel@zuster.org>
Sat, 20 Mar 2010 21:13:08 +0000 (21:13 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 20 Mar 2010 21:13:08 +0000 (21:13 +0000)
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

test/lit.cfg

index beb8ae03b4f62129f1d0b6a0b6fd7b3b57719a9c..b306331703ea2de9ce220f60c3963709668517a4 100644 (file)
@@ -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)