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.

llvm-svn: 99089
This commit is contained in:
Daniel Dunbar 2010-03-20 21:13:08 +00:00
parent e848de3911
commit 9b9a46c3f2
1 changed files with 5 additions and 0 deletions

View 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)