[cfe-commits] [libcxx] r161193 - /libcxx/trunk/test/lit.cfg

Howard Hinnant hhinnant at apple.com
Thu Aug 2 11:36:47 PDT 2012


Author: hhinnant
Date: Thu Aug  2 13:36:47 2012
New Revision: 161193

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

Modified:
    libcxx/trunk/test/lit.cfg

Modified: libcxx/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/lit.cfg?rev=161193&r1=161192&r2=161193&view=diff
==============================================================================
--- libcxx/trunk/test/lit.cfg (original)
+++ libcxx/trunk/test/lit.cfg Thu Aug  2 13:36:47 2012
@@ -83,6 +83,8 @@
                     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





More information about the cfe-commits mailing list