[cfe-commits] r99089 - /cfe/trunk/test/lit.cfg

Daniel Dunbar daniel at zuster.org
Sat Mar 20 14:13:08 PDT 2010

Author: ddunbar
Date: Sat Mar 20 16:13:08 2010
New Revision: 99089

URL: http://llvm.org/viewvc/llvm-project?rev=99089&view=rev
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


Modified: cfe/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/lit.cfg?rev=99089&r1=99088&r2=99089&view=diff
--- cfe/trunk/test/lit.cfg (original)
+++ cfe/trunk/test/lit.cfg Sat Mar 20 16:13:08 2010
@@ -119,6 +119,11 @@
     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)

More information about the cfe-commits mailing list