tests: Mangle '-vg' onto the end of the triple when running under valgrind, so
authorDaniel Dunbar <daniel@zuster.org>
Sat, 20 Mar 2010 21:12:48 +0000 (21:12 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 20 Mar 2010 21:12:48 +0000 (21:12 +0000)
we can use the standard XFAIL and XTARGET to conditional tests based on
valgrind.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99088 91177308-0d34-0410-b5e6-96231b3b80d8

test/lit.cfg

index 929871a1d225d53395a3584959d965e65e2c7143..e65b8bec9e4e3caa1b800a1ed91ca52ccc796708 100644 (file)
@@ -128,6 +128,11 @@ 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'
+
 # Provide llvm_supports_target for use in local configs.
 targets = set(site_exp["TARGETS_TO_BUILD"].split())
 def llvm_supports_target(name):