[libcxx-commits] [libcxx] 67ebe5d - [libc++] Avoid duplicating logic in the libcxx-specific filesystem local lit config

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Mar 30 08:23:28 PDT 2020


Author: Louis Dionne
Date: 2020-03-30T11:23:19-04:00
New Revision: 67ebe5de57d1b1ed6d8d04cbd3c3454bbf781f05

URL: https://github.com/llvm/llvm-project/commit/67ebe5de57d1b1ed6d8d04cbd3c3454bbf781f05
DIFF: https://github.com/llvm/llvm-project/commit/67ebe5de57d1b1ed6d8d04cbd3c3454bbf781f05.diff

LOG: [libc++] Avoid duplicating logic in the libcxx-specific filesystem local lit config

This will become more relevant as we shift more filesystem-specific
logic to the local lit configuration in test/std/input.output/filesystems.

Added: 
    

Modified: 
    libcxx/test/libcxx/input.output/filesystems/lit.local.cfg

Removed: 
    


################################################################################
diff  --git a/libcxx/test/libcxx/input.output/filesystems/lit.local.cfg b/libcxx/test/libcxx/input.output/filesystems/lit.local.cfg
index 132b73ccbde5..4eadb33e04d0 100644
--- a/libcxx/test/libcxx/input.output/filesystems/lit.local.cfg
+++ b/libcxx/test/libcxx/input.output/filesystems/lit.local.cfg
@@ -1,5 +1,4 @@
-# Disable all of the filesystem tests if the dylib under test doesn't support them.
-if 'dylib-has-no-filesystem' in config.available_features:
-  config.unsupported = True
-if 'c++filesystem-disabled' in config.available_features:
-  config.unsupported = True
+# Load the same local configuration as the filesystem tests in libcxx/test/std
+import os
+std_filesystem_tests = os.path.join(config.test_source_root, 'std', 'input.output', 'filesystems')
+config.load_from_path(os.path.join(std_filesystem_tests, 'lit.local.cfg'), lit_config)


        


More information about the libcxx-commits mailing list