[cfe-commits] r111970 - in /cfe/trunk/test: Index/crash-recovery-code-complete.c Index/crash-recovery-reparse.c Index/crash-recovery.c lit.cfg

Daniel Dunbar daniel at zuster.org
Tue Aug 24 14:39:55 PDT 2010


Author: ddunbar
Date: Tue Aug 24 16:39:55 2010
New Revision: 111970

URL: http://llvm.org/viewvc/llvm-project?rev=111970&view=rev
Log:
tests: Use REQUIRES: instead of XFAIL: for crash recovery tests; running them on
Windows breaks things (because it pops up dialogs) since we don't have crash
recovery support there (yet).

Modified:
    cfe/trunk/test/Index/crash-recovery-code-complete.c
    cfe/trunk/test/Index/crash-recovery-reparse.c
    cfe/trunk/test/Index/crash-recovery.c
    cfe/trunk/test/lit.cfg

Modified: cfe/trunk/test/Index/crash-recovery-code-complete.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/crash-recovery-code-complete.c?rev=111970&r1=111969&r2=111970&view=diff
==============================================================================
--- cfe/trunk/test/Index/crash-recovery-code-complete.c (original)
+++ cfe/trunk/test/Index/crash-recovery-code-complete.c Tue Aug 24 16:39:55 2010
@@ -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

Modified: cfe/trunk/test/Index/crash-recovery-reparse.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/crash-recovery-reparse.c?rev=111970&r1=111969&r2=111970&view=diff
==============================================================================
--- cfe/trunk/test/Index/crash-recovery-reparse.c (original)
+++ cfe/trunk/test/Index/crash-recovery-reparse.c Tue Aug 24 16:39:55 2010
@@ -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

Modified: cfe/trunk/test/Index/crash-recovery.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/crash-recovery.c?rev=111970&r1=111969&r2=111970&view=diff
==============================================================================
--- cfe/trunk/test/Index/crash-recovery.c (original)
+++ cfe/trunk/test/Index/crash-recovery.c Tue Aug 24 16:39:55 2010
@@ -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

Modified: cfe/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/lit.cfg?rev=111970&r1=111969&r2=111970&view=diff
==============================================================================
--- cfe/trunk/test/lit.cfg (original)
+++ cfe/trunk/test/lit.cfg Tue Aug 24 16:39:55 2010
@@ -146,3 +146,9 @@
 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')





More information about the cfe-commits mailing list