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
// 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
// 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
// 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
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')