[llvm-commits] [llvm] r99088 - /llvm/trunk/test/lit.cfg
Daniel Dunbar
daniel at zuster.org
Sat Mar 20 14:12:48 PDT 2010
Author: ddunbar
Date: Sat Mar 20 16:12:48 2010
New Revision: 99088
URL: http://llvm.org/viewvc/llvm-project?rev=99088&view=rev
Log:
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.
Modified:
llvm/trunk/test/lit.cfg
Modified: llvm/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=99088&r1=99087&r2=99088&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Sat Mar 20 16:12:48 2010
@@ -128,6 +128,11 @@
# 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'
+
# Provide llvm_supports_target for use in local configs.
targets = set(site_exp["TARGETS_TO_BUILD"].split())
def llvm_supports_target(name):
More information about the llvm-commits
mailing list