From: NAKAMURA Takumi Date: Sun, 16 Feb 2014 10:15:34 +0000 (+0000) Subject: Introduce the feature "can-remove-opened-file" to suppress tests. [PR18856] X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e87513aee63b7338e28192d3dc646ef7c7520465;p=clang Introduce the feature "can-remove-opened-file" to suppress tests. [PR18856] git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201482 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Index/crash-recovery-code-complete.c b/test/Index/crash-recovery-code-complete.c index 0adf20ffee..b2a1a9b3f9 100644 --- a/test/Index/crash-recovery-code-complete.c +++ b/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/test/lit.cfg b/test/lit.cfg index 15becd511a..d82d465ff0 100644 --- a/test/lit.cfg +++ b/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()