diff --git a/clang/test/Index/crash-recovery-code-complete.c b/clang/test/Index/crash-recovery-code-complete.c index 0adf20ffeed5..b2a1a9b3f96b 100644 --- a/clang/test/Index/crash-recovery-code-complete.c +++ b/clang/test/Index/crash-recovery-code-complete.c @@ -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 diff --git a/clang/test/lit.cfg b/clang/test/lit.cfg index 15becd511a2b..d82d465ff0d2 100644 --- a/clang/test/lit.cfg +++ b/clang/test/lit.cfg @@ -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()