]> granicus.if.org Git - clang/commitdiff
CIndex: Use 'env' instead of relying on bash environment-variable setting
authorDaniel Dunbar <daniel@zuster.org>
Tue, 2 Feb 2010 05:20:37 +0000 (05:20 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 2 Feb 2010 05:20:37 +0000 (05:20 +0000)
syntax.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95068 91177308-0d34-0410-b5e6-96231b3b80d8

test/Index/remap-cursor-at.c
test/Index/remap-load.c

index f7bcf79b759f256c2009a3fd3d8928dd8cb2fa36..fb97d5d62bc721f636f298c07000b46f84c7ff8e 100644 (file)
@@ -1,5 +1,5 @@
 // RUN: c-index-test -cursor-at=%s:1:15 -cursor-at=%s:2:21 -remap-file="%s;%S/Inputs/remap-load-to.c" %s | FileCheck %s
-// RUN: CINDEXTEST_USE_EXTERNAL_AST_GENERATION=1 c-index-test -cursor-at=%s:1:15 -cursor-at=%s:2:21 -remap-file="%s;%S/Inputs/remap-load-to.c" %s | FileCheck %s
+// RUN: env CINDEXTEST_USE_EXTERNAL_AST_GENERATION=1 c-index-test -cursor-at=%s:1:15 -cursor-at=%s:2:21 -remap-file="%s;%S/Inputs/remap-load-to.c" %s | FileCheck %s
 
 // CHECK: ParmDecl=parm1:1:13 (Definition)
 // CHECK: DeclRefExpr=parm2:1:26
index 637b1673f638d3cce1b2e6a809dd0c6f7859709d..b5c9062edd9e5adf1c167da930708a7f9b4c5ce3 100644 (file)
@@ -1,5 +1,5 @@
 // RUN: c-index-test -test-load-source all -remap-file="%s;%S/Inputs/remap-load-to.c" %s | FileCheck -check-prefix=CHECK %s
-// RUN: CINDEXTEST_USE_EXTERNAL_AST_GENERATION=1 c-index-test -test-load-source all -remap-file="%s;%S/Inputs/remap-load-to.c" %s | FileCheck -check-prefix=CHECK %s
+// RUN: env CINDEXTEST_USE_EXTERNAL_AST_GENERATION=1 c-index-test -test-load-source all -remap-file="%s;%S/Inputs/remap-load-to.c" %s | FileCheck -check-prefix=CHECK %s
 
 // CHECK: remap-load.c:1:5: FunctionDecl=foo:1:5 (Definition) [Extent=1:5:3:1]
 // CHECK: remap-load.c:1:13: ParmDecl=parm1:1:13 (Definition) [Extent=1:9:1:17]