Andrew Morrow: The attached patch updates the lit.config for libc++ unit tests so

that the valgrind configuration passed to lit.py is used to run .pass
tests.

llvm-svn: 161193
This commit is contained in:
Howard Hinnant 2012-08-02 18:36:47 +00:00
parent 4df0a6adf6
commit c1a45fb70f
1 changed files with 2 additions and 0 deletions

View File

@ -83,6 +83,8 @@ class LibcxxTestFormat(lit.formats.FileBasedTest):
return lit.Test.FAIL, report
cmd = [exec_path]
if lit_config.useValgrind:
cmd = lit_config.valgrindArgs + cmd
out, err, exitCode = self.execute_command(cmd)
if exitCode != 0:
report = """Compiled With: %s\n""" % ' '.join(["'%s'" % a