diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-08-24 21:39:55 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-08-24 21:39:55 +0000 |
commit | db918646c0d549a48b85734cb735e094886890d2 (patch) | |
tree | 195ec5f4754cb895150988c629d4cac7ff4d9578 | |
parent | 9db9ad3f084d3c70cff01a10d4fd90901982b37b (diff) |
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).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111970 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Index/crash-recovery-code-complete.c | 2 | ||||
-rw-r--r-- | test/Index/crash-recovery-reparse.c | 2 | ||||
-rw-r--r-- | test/Index/crash-recovery.c | 2 | ||||
-rw-r--r-- | test/lit.cfg | 6 |
4 files changed, 9 insertions, 3 deletions
diff --git a/test/Index/crash-recovery-code-complete.c b/test/Index/crash-recovery-code-complete.c index 71b98b639b..a80bdc2aee 100644 --- a/test/Index/crash-recovery-code-complete.c +++ b/test/Index/crash-recovery-code-complete.c @@ -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 diff --git a/test/Index/crash-recovery-reparse.c b/test/Index/crash-recovery-reparse.c index 0697576880..e394bd18df 100644 --- a/test/Index/crash-recovery-reparse.c +++ b/test/Index/crash-recovery-reparse.c @@ -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 diff --git a/test/Index/crash-recovery.c b/test/Index/crash-recovery.c index 73920c2f33..b7f6e0b2b9 100644 --- a/test/Index/crash-recovery.c +++ b/test/Index/crash-recovery.c @@ -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 diff --git a/test/lit.cfg b/test/lit.cfg index 42de5cbc5f..80f8d5a544 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -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') |