[libcxx] r174443 - [tests] Add an available feature that combines the triple and use_system_lib.

Daniel Dunbar daniel at zuster.org
Tue Feb 5 13:43:30 PST 2013


Author: ddunbar
Date: Tue Feb  5 15:43:30 2013
New Revision: 174443

URL: http://llvm.org/viewvc/llvm-project?rev=174443&view=rev
Log:
[tests] Add an available feature that combines the triple and use_system_lib.

  - This is so that we can easily write XFAIL markers for tests that are known
    to fail with versions of libc++ as were shipped with a particular triple.

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=174443&r1=174442&r2=174443&view=diff
==============================================================================
--- libcxx/trunk/test/lit.cfg (original)
+++ libcxx/trunk/test/lit.cfg Tue Feb  5 15:43:30 2013
@@ -278,3 +278,11 @@ config.test_format = LibcxxTestFormat(
 
 config.target_triple = lit.params.get(
     'target_triple', 'unknown-unknown-unknown')
+
+# Write an "available feature" that combines the triple when use_system_lib is
+# enabled. This is so that we can easily write XFAIL markers for tests that are
+# known to fail with versions of libc++ as were shipped with a particular
+# triple.
+if use_system_lib:
+    config.available_features.add('with_system_lib=%s' % (
+            config.target_triple,))





More information about the cfe-commits mailing list