diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-08-20 00:59:43 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-08-20 00:59:43 +0000 |
commit | 2283d79155a3e82442fce124ce5fd704ca138801 (patch) | |
tree | 2bcc8745f5052aad44acdacbd1b96a7f473bc89e /test/Index/crash-recovery-code-complete.c | |
parent | 6dbce19fdae4cfae4eb5f826284978e723a04e61 (diff) |
When performing code-completion in the presence of a preamble, make
sure to (1) actually use the remapped files we were given rather
than old data, and (2) keep the remapped files alive until the
code-completion results are destroyed. Big thanks to Daniel for the
test case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111597 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/crash-recovery-code-complete.c')
-rw-r--r-- | test/Index/crash-recovery-code-complete.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/Index/crash-recovery-code-complete.c b/test/Index/crash-recovery-code-complete.c index be834fb813..71b98b639b 100644 --- a/test/Index/crash-recovery-code-complete.c +++ b/test/Index/crash-recovery-code-complete.c @@ -1,11 +1,10 @@ -// RUN: echo env CINDEXTEST_EDITING=1 \ +// RUN: env CINDEXTEST_EDITING=1 \ // RUN: not c-index-test -code-completion-at=%s:20:1 \ -// RUN: -remap-file="%s;%S/Inputs/crash-recovery-code-complete-remap.c" \ +// RUN: "-remap-file=%s;%S/Inputs/crash-recovery-code-complete-remap.c" \ // RUN: %s 2> %t.err // RUN: FileCheck < %t.err -check-prefix=CHECK-CODE-COMPLETE-CRASH %s -// CHECK-CODE-COMPLETE-CRASH: Unable to reparse translation unit +// CHECK-CODE-COMPLETE-CRASH: Unable to perform code completion! // // XFAIL: win32 -// XFAIL: * #warning parsing original file |