]> granicus.if.org Git - clang/commitdiff
tests: Use REQUIRES: instead of XFAIL: for crash recovery tests; running them on
authorDaniel Dunbar <daniel@zuster.org>
Tue, 24 Aug 2010 21:39:55 +0000 (21:39 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 24 Aug 2010 21:39:55 +0000 (21:39 +0000)
Windows breaks things (because it pops up dialogs) since we don't have crash
recovery support there (yet).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111970 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 71b98b639be09fe8d74745225e7b1d3e355ea2b7..a80bdc2aee800b4286523de1fd669af706755d09 100644 (file)
@@ -5,6 +5,6 @@
 // RUN: FileCheck < %t.err -check-prefix=CHECK-CODE-COMPLETE-CRASH %s
 // CHECK-CODE-COMPLETE-CRASH: Unable to perform code completion!
 //
-// XFAIL: win32
+// REQUIRES: crash-recovery
 
 #warning parsing original file
index 0697576880f7a17137f4b2eb9de8af967513a551..e394bd18dfb5c92098d2df0122a1ab66bb1b7be2 100644 (file)
@@ -5,6 +5,6 @@
 // RUN: FileCheck < %t.err -check-prefix=CHECK-REPARSE-SOURCE-CRASH %s
 // CHECK-REPARSE-SOURCE-CRASH: Unable to reparse translation unit
 //
-// XFAIL: win32
+// REQUIRES: crash-recovery
 
 #warning parsing original file
index 73920c2f33a240af395664e60a4823bbf08e7dd9..b7f6e0b2b9e9a9cf07d50e930bc0b03f02ce571d 100644 (file)
@@ -2,6 +2,6 @@
 // RUN: FileCheck < %t.err -check-prefix=CHECK-LOAD-SOURCE-CRASH %s
 // CHECK-LOAD-SOURCE-CRASH: Unable to load translation unit
 //
-// XFAIL: win32
+// REQUIRES: crash-recovery
 
 #pragma clang __debug crash
index 42de5cbc5f92c0257480e74bfaf426ed25a1b24c..80f8d5a544af238995bbddf3f9d305af33ac50d3 100644 (file)
@@ -146,3 +146,9 @@ config.substitutions.append(
 config.substitutions.append(
     (' %clang-cc1 ',
      """*** invalid substitution, use '%clang_cc1'. ***""") )
+
+###
+
+# Set available features we allow tests to conditionalize on.
+if platform.system() != 'Windows':
+    config.available_features.add('crash-recovery')