]> granicus.if.org Git - clang/commitdiff
Introduce the feature "can-remove-opened-file" to suppress tests. [PR18856]
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 16 Feb 2014 10:15:34 +0000 (10:15 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 16 Feb 2014 10:15:34 +0000 (10:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201482 91177308-0d34-0410-b5e6-96231b3b80d8

test/Index/crash-recovery-code-complete.c
test/lit.cfg

index 0adf20ffeed5e3f6cafaa9a230a8fb31c8b2ad48..b2a1a9b3f96b2bbc0d33e9925f26cbae82f1093c 100644 (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
index 15becd511a2b0d02639e96b7bb151d9607b44f15..d82d465ff0d215ccc496a03714f88818aa1e5a9e 100644 (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()