[cfe-commits] r113493 - /cfe/trunk/test/Index/complete-hiding.c
Francois Pichet
pichet2000 at gmail.com
Thu Sep 9 17:58:08 PDT 2010
Hi... This fix doesn't help
But I found a pattern. all the tests that fail use this: env
CINDEXTEST_EDITING=1
So I went into c-index-test.c and commented out line 36 and 37:
if (getenv("CINDEXTEST_EDITING"))
options |= clang_defaultEditingTranslationUnitOptions();
with that in comment... all the index tests pass.
I have absolutely no idea why.
On Thu, Sep 9, 2010 at 12:16 PM, Douglas Gregor <dgregor at apple.com> wrote:
> Author: dgregor
> Date: Thu Sep 9 11:16:39 2010
> New Revision: 113493
>
> URL: http://llvm.org/viewvc/llvm-project?rev=113493&view=rev
> Log:
> Use temporary files for this test, to see if we can flush out an inexplicable error on Windows
>
> Modified:
> cfe/trunk/test/Index/complete-hiding.c
>
> Modified: cfe/trunk/test/Index/complete-hiding.c
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/complete-hiding.c?rev=113493&r1=113492&r2=113493&view=diff
> ==============================================================================
> --- cfe/trunk/test/Index/complete-hiding.c (original)
> +++ cfe/trunk/test/Index/complete-hiding.c Thu Sep 9 11:16:39 2010
> @@ -16,14 +16,17 @@
> struct StructA sa = { };
> }
>
> -// RUN: c-index-test -code-completion-at=%s:16:3 %s | FileCheck -check-prefix=CHECK-CC1 %s
> +// RUN: c-index-test -code-completion-at=%s:16:3 %s > %t
> +// RUN: FileCheck -check-prefix=CHECK-CC1 -input-file=%t %s
> // RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:16:3 %s | FileCheck -check-prefix=CHECK-CC1 %s
> // CHECK-CC1: VarDecl:{ResultType int}{TypedText StructA} (8)
> // CHECK-CC1: VarDecl:{ResultType int}{TypedText ValueA} (8)
> // CHECK-CC1-NOT: VarDecl:{ResultType int}{TypedText ValueA} (50)
> // CHECK-CC1: VarDecl:{ResultType int}{TypedText ValueB} (50)
> -// RUN: c-index-test -code-completion-at=%s:16:10 %s | FileCheck -check-prefix=CHECK-CC2 %s
> +// RUN: c-index-test -code-completion-at=%s:16:10 %s > %t
> +// RUN: FileCheck -check-prefix=CHECK-CC2 -input-file=%t %s
> // CHECK-CC2: StructDecl:{TypedText StructA} (65)
> // CHECK-CC2-NOT: StructDecl:{TypedText StructB} (65)
> // CHECK-CC2: StructDecl:{TypedText StructC} (65)
> -// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:16:10 %s | FileCheck -check-prefix=CHECK-CC2 %s
> +// RUN: env CINDEXTEST_EDITING=1 CINDEXTEST_COMPLETION_CACHING=1 c-index-test -code-completion-at=%s:16:10 %s > %t
> +// RUN: FileCheck -check-prefix=CHECK-CC2 -input-file=%t %s
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
More information about the cfe-commits
mailing list