[libcxx] r228071 - add platform to LIT's available features

Eric Fiselier eric at efcs.ca
Tue Feb 3 15:49:59 PST 2015


Author: ericwf
Date: Tue Feb  3 17:49:58 2015
New Revision: 228071

URL: http://llvm.org/viewvc/llvm-project?rev=228071&view=rev
Log:
add platform to LIT's available features

Modified:
    libcxx/trunk/test/libcxx/test/config.py

Modified: libcxx/trunk/test/libcxx/test/config.py
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/test/config.py?rev=228071&r1=228070&r2=228071&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/test/config.py (original)
+++ libcxx/trunk/test/libcxx/test/config.py Tue Feb  3 17:49:58 2015
@@ -257,6 +257,14 @@ class Configuration(object):
             self.config.available_features.add(
                 'with_system_cxx_lib=%s' % self.config.target_triple)
 
+        # Insert the platform name into the available features as a lower case.
+        # Strip the '2' from linux2.
+        if sys.platform.startswith('linux'):
+            platform_name = 'linux'
+        else:
+            platform_name = sys.platform
+        self.config.available_features.add(platform_name.lower())
+
         # Some linux distributions have different locale data than others.
         # Insert the distributions name and name-version into the available
         # features to allow tests to XFAIL on them.





More information about the cfe-commits mailing list