Introduce the feature "can-remove-opened-file" to suppress tests. [PR18856]

llvm-svn: 201482
This commit is contained in:
NAKAMURA Takumi 2014-02-16 10:15:34 +00:00
parent 4a74104933
commit 23c767102a
2 changed files with 6 additions and 1 deletions

View File

@ -9,6 +9,6 @@
// REQUIRES: crash-recovery
// FIXME: Please investigate abnormal path in MemoryBuffer.
// XFAIL: mingw32,win32
// REQUIRES: can-remove-opened-file
#warning parsing original file

View File

@ -344,6 +344,11 @@ if not re.match(r'^x86_64.*-(win32|mingw32)$', config.target_triple):
if not re.match(r'.*-(cygwin|mingw32)$', config.target_triple):
config.available_features.add('clang-driver')
# [PR18856] Depends to remove opened file. On win32, a file could be removed
# only if all handles were closed.
if platform.system() not in ['Windows']:
config.available_features.add('can-remove-opened-file')
# Returns set of available features, registered-target(s) and asserts.
def get_llvm_config_props():
set_of_features = set()