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
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits