This will become more relevant as we shift more filesystem-specific
logic to the local lit configuration in test/std/input.output/filesystems.
-# 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)